mirror of
https://github.com/searxng/searxng.git
synced 2025-07-12 15:59:21 +02:00
utils/searx.sh & filtron.sh: misc changes from first tests (WIP)
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
924bf65517
commit
6274a54746
4 changed files with 30 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue