diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2020-02-16 20:07:37 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2020-02-16 20:07:37 +0100 |
commit | ad3273986024c80cfe067d1b77983901a41b6d01 (patch) | |
tree | e561ad42141b36109f96ac17f671563de0355f80 /utils/searx.sh | |
parent | e8cf22504650f742da247bc923abebccec869676 (diff) | |
download | searxng-ad3273986024c80cfe067d1b77983901a41b6d01.tar.gz searxng-ad3273986024c80cfe067d1b77983901a41b6d01.zip |
shellcheck: fix usse -n instead of ! -z (SC2236 SC2237)
- https://www.shellcheck.net/wiki/SC2236 -- Use -n instead of ! -z.
- https://www.shellcheck.net/wiki/SC2237 -- Use [ -n .. ] instead of ! [ -z ....
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/searx.sh')
-rwxr-xr-x | utils/searx.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/searx.sh b/utils/searx.sh index 5eb16700b..73bdd5510 100755 --- a/utils/searx.sh +++ b/utils/searx.sh @@ -110,7 +110,7 @@ If needed, set PUBLIC_URL of your WEB service in the '${DOT_CONFIG#"$REPO_ROOT/" SERVICE_USER : ${SERVICE_USER} EOF - [ ! -z "${1+x}" ] && err_msg "$1" + [[ -n ${1} ]] && err_msg "$1" } main() { |