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/morty.sh | |
| parent | e8cf22504650f742da247bc923abebccec869676 (diff) | |
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/morty.sh')
| -rwxr-xr-x | utils/morty.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/morty.sh b/utils/morty.sh index 7a9db08a8..bd4ad5901 100755 --- a/utils/morty.sh +++ b/utils/morty.sh @@ -84,7 +84,7 @@ ${DOT_CONFIG#"$REPO_ROOT/"} file:: SERVICE_USER : ${SERVICE_USER} EOF info_searx - [ ! -z "${1+x}" ] && err_msg "$1" + [[ -n ${1} ]] && err_msg "$1" } info_searx() { |