From 8812a312d5ad4e544dce1216c6eb3b7c34382035 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sun, 7 Jun 2020 13:34:59 -0500 Subject: Set timeout --- bollux | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bollux b/bollux index 1eb120c..1aaa70f 100755 --- a/bollux +++ b/bollux @@ -349,7 +349,7 @@ gemini_response() { url="$1" # we need a loop here so it waits for the first line - while read -t "3" -r code meta || + while read -t "$BOLLUX_TIMEOUT" -r code meta || { (($? > 128)) && die 99 "Timeout."; }; do break done @@ -457,7 +457,7 @@ gopher_response() { if [[ "$url" =~ $'\t' ]]; then run gopher_convert | run display text/gemini else - run prompt GopherSearch + run prompt 'SEARCH' run blastoff "$url $REPLY" fi ;; -- cgit 1.4.1-21-gabe81