about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2020-06-08 15:37:29 -0500
committerCase Duckworth2020-06-08 15:37:29 -0500
commitb5e61bcf2f58fe5041cee2b7a848378a4297c9ea (patch)
tree889309bf066700e5ce3d3476c8105aba50c3eac6
parentImplement 'sleep' as a builtin (diff)
downloadbollux-b5e61bcf2f58fe5041cee2b7a848378a4297c9ea.tar.gz
bollux-b5e61bcf2f58fe5041cee2b7a848378a4297c9ea.zip
Reload page if no links
-rwxr-xr-xbollux5
1 files changed, 5 insertions, 0 deletions
diff --git a/bollux b/bollux index 1378961..ed84894 100755 --- a/bollux +++ b/bollux
@@ -923,6 +923,11 @@ handle_keypress() { # handle_keypress CODE
923# select a URL from a text/gemini file 923# select a URL from a text/gemini file
924select_url() { # select_url FILE 924select_url() { # select_url FILE
925 run mapfile -t < <(extract_links <"$1") 925 run mapfile -t < <(extract_links <"$1")
926 if ((${#MAPFILE[@]} == 0)); then
927 log e "No links on this page!"
928 sleep 0.5
929 run blastoff "$BOLLUX_URL"
930 fi
926 PS3="OPEN> " 931 PS3="OPEN> "
927 select u in "${MAPFILE[@]}"; do 932 select u in "${MAPFILE[@]}"; do
928 case "$REPLY" in 933 case "$REPLY" in