diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2020-01-30 19:55:51 +0100 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarit.de> | 2020-01-30 19:55:51 +0100 |
| commit | 6274a54746b4444f8850aecea0cb0734c6bdc29c (patch) | |
| tree | 7454d0d02902dfda7ea94b45ae84bc342c427aab /utils/lib.sh | |
| parent | 924bf6551794e5962688c1e2962dc0c94869e2f1 (diff) | |
utils/searx.sh & filtron.sh: misc changes from first tests (WIP)
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/lib.sh')
| -rwxr-xr-x | utils/lib.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/lib.sh b/utils/lib.sh index e2bcd8e9d..0586b2575 100755 --- a/utils/lib.sh +++ b/utils/lib.sh @@ -121,10 +121,11 @@ wait_key(){ clean_stdin local _t=$1 + local msg="${MSG:-** press any [KEY] to continue **}" [[ ! -z $FORCE_TIMEOUT ]] && _t=$FORCE_TIMEOUT [[ ! -z $_t ]] && _t="-t $_t" # shellcheck disable=SC2086 - read -r -s -n1 $_t -p "** press any [KEY] to continue **" + read -r -s -n1 $_t -p "$msg" echo clean_stdin } @@ -436,6 +437,9 @@ service_is_available() { if [[ $exit_val = 0 ]]; then info_msg "got $http_code from ${URL}" fi + case "$http_code" in + 404|410|423) exit_val=$http_code;; + esac return $exit_val } |