aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorMario Trangoni <mjtrangoni@gmail.com>2021-01-31 14:17:39 +0100
committerMario Trangoni <mjtrangoni@gmail.com>2021-01-31 14:17:39 +0100
commit5b628e2d79bce67b255690e0a54a0a488bbb05e0 (patch)
tree9858ae1027e11a096323b92a351b00553fc3fefa /nx-X11
parente5746df802eff5c50e46ef5ee96b3f0e34a00003 (diff)
downloadnx-libs-5b628e2d79bce67b255690e0a54a0a488bbb05e0.tar.gz
nx-libs-5b628e2d79bce67b255690e0a54a0a488bbb05e0.tar.bz2
nx-libs-5b628e2d79bce67b255690e0a54a0a488bbb05e0.zip
shellcheck: Fix SC2006 issue
See, $ find . -name "*.sh" | xargs shellcheck -i SC2006 In ./roll-tarballs.sh line 62: echo "HEAD (on branch `git rev-parse --abbrev-ref HEAD`)" ^-- SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: echo "HEAD (on branch $(git rev-parse --abbrev-ref HEAD))" In ./nx-X11/x-indent-all.sh line 2: where=`dirname $0` ^----------^ SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: where=$(dirname $0) In ./nx-X11/x-indent.sh line 5: INDENT=`which gnuindent || which gindent || which indent` ^-- SC2006: Use $(...) notation instead of legacy backticked `...`. Did you mean: INDENT=$(which gnuindent || which gindent || which indent) For more information: https://www.shellcheck.net/wiki/SC2006 -- Use $(...) notation instead of le... Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
Diffstat (limited to 'nx-X11')
-rwxr-xr-xnx-X11/x-indent-all.sh2
-rwxr-xr-xnx-X11/x-indent.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/nx-X11/x-indent-all.sh b/nx-X11/x-indent-all.sh
index 6addaf400..d3c4113de 100755
--- a/nx-X11/x-indent-all.sh
+++ b/nx-X11/x-indent-all.sh
@@ -1,4 +1,4 @@
#!/bin/sh
-where=`dirname $0`
+where=$(dirname $0)
git ls-files | grep '\.[chm]$' | xargs sh "$where"/x-indent.sh
diff --git a/nx-X11/x-indent.sh b/nx-X11/x-indent.sh
index e662cce09..327aa6a4f 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=$(which gnuindent || which gindent || which indent)
if [ -z "${INDENT}" ] ; then
echo "Could not find indent, sorry..." >&2