diff options
author | Case Duckworth | 2020-06-07 13:34:59 -0500 |
---|---|---|
committer | Case Duckworth | 2020-06-07 13:34:59 -0500 |
commit | 8812a312d5ad4e544dce1216c6eb3b7c34382035 (patch) | |
tree | 98885139f043b4db87b2364508497e9d6461e916 | |
parent | Add gophertypes 7 and hopefully others (download) (diff) | |
download | bollux-8812a312d5ad4e544dce1216c6eb3b7c34382035.tar.gz bollux-8812a312d5ad4e544dce1216c6eb3b7c34382035.zip |
Set timeout
-rwxr-xr-x | bollux | 4 |
1 files 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() { | |||
349 | url="$1" | 349 | url="$1" |
350 | 350 | ||
351 | # we need a loop here so it waits for the first line | 351 | # we need a loop here so it waits for the first line |
352 | while read -t "3" -r code meta || | 352 | while read -t "$BOLLUX_TIMEOUT" -r code meta || |
353 | { (($? > 128)) && die 99 "Timeout."; }; do | 353 | { (($? > 128)) && die 99 "Timeout."; }; do |
354 | break | 354 | break |
355 | done | 355 | done |
@@ -457,7 +457,7 @@ gopher_response() { | |||
457 | if [[ "$url" =~ $'\t' ]]; then | 457 | if [[ "$url" =~ $'\t' ]]; then |
458 | run gopher_convert | run display text/gemini | 458 | run gopher_convert | run display text/gemini |
459 | else | 459 | else |
460 | run prompt GopherSearch | 460 | run prompt 'SEARCH' |
461 | run blastoff "$url $REPLY" | 461 | run blastoff "$url $REPLY" |
462 | fi | 462 | fi |
463 | ;; | 463 | ;; |