From: Case Duckworth Date: Sun, 7 Jun 2020 18:34:59 +0000 (-0500) Subject: Set timeout X-Git-Tag: 0.4.0~1 X-Git-Url: https://reisub.nsupdate.info/git/?p=bollux.git%2F.git;a=commitdiff_plain;h=8812a312d5ad4e544dce1216c6eb3b7c34382035 Set timeout --- 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 ;;