summaryrefslogtreecommitdiff
path: root/utils/filtron.sh
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2020-02-16 20:07:37 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2020-02-16 20:07:37 +0100
commitad3273986024c80cfe067d1b77983901a41b6d01 (patch)
treee561ad42141b36109f96ac17f671563de0355f80 /utils/filtron.sh
parente8cf22504650f742da247bc923abebccec869676 (diff)
downloadsearxng-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/filtron.sh')
-rwxr-xr-xutils/filtron.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/filtron.sh b/utils/filtron.sh
index df6932723..2cbea4023 100755
--- a/utils/filtron.sh
+++ b/utils/filtron.sh
@@ -97,7 +97,7 @@ If needed, set PUBLIC_URL of your WEB service in the '${DOT_CONFIG#"$REPO_ROOT/"
FILTRON_TARGET : ${FILTRON_TARGET}
EOF
- [ ! -z "${1+x}" ] && err_msg "$1"
+ [[ -n ${1} ]] && err_msg "$1"
}
main() {