From b5e61bcf2f58fe5041cee2b7a848378a4297c9ea Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 8 Jun 2020 15:37:29 -0500 Subject: Reload page if no links --- bollux | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bollux b/bollux index 1378961..ed84894 100755 --- a/bollux +++ b/bollux @@ -923,6 +923,11 @@ handle_keypress() { # handle_keypress CODE # select a URL from a text/gemini file select_url() { # select_url FILE run mapfile -t < <(extract_links <"$1") + if ((${#MAPFILE[@]} == 0)); then + log e "No links on this page!" + sleep 0.5 + run blastoff "$BOLLUX_URL" + fi PS3="OPEN> " select u in "${MAPFILE[@]}"; do case "$REPLY" in -- cgit 1.4.1-21-gabe81