From 6bada8f63d98128b269fb379194aead1eacbd711 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Mon, 7 Jun 2021 14:32:08 +0200 Subject: 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 --- nx-X11/x-indent.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3