aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-06-07 14:32:08 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-06-07 15:05:45 +0200
commit6bada8f63d98128b269fb379194aead1eacbd711 (patch)
treec0889225d7462abe7f3168f3b268081366d9c2e3
parent71ae04011c353b0341b5ab0c16dad12ebefe6a67 (diff)
downloadnx-libs-6bada8f63d98128b269fb379194aead1eacbd711.tar.gz
nx-libs-6bada8f63d98128b269fb379194aead1eacbd711.tar.bz2
nx-libs-6bada8f63d98128b269fb379194aead1eacbd711.zip
shellcheck: Fix SC2230 issue
./nx-X11/x-indent.sh line 5: INDENT=$(which gnuindent || which gindent || which indent) ^---^ SC2230: which is non-standard. Use builtin 'command -v' instead. ^---^ SC2230: which is non-standard. Use builtin 'command -v' instead. ^---^ SC2230: which is non-standard. Use builtin 'command -v' instead. For more information: https://www.shellcheck.net/wiki/SC2230 -- which is non-standard. Use builti... Signed-off-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
-rwxr-xr-xnx-X11/x-indent.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/x-indent.sh b/nx-X11/x-indent.sh
index 327aa6a4f..4690372e6 100755
--- a/nx-X11/x-indent.sh
+++ b/nx-X11/x-indent.sh
@@ -2,7 +2,7 @@
# We want GNU indent, so first search for gindent to avoid /usr/bin/indent
# on the BSDs, which won't work for us
-INDENT=$(which gnuindent || which gindent || which indent)
+INDENT=$(command -v gnuindent || command -v gindent || command -v indent)
if [ -z "${INDENT}" ] ; then
echo "Could not find indent, sorry..." >&2