aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-08 10:37:45 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-08 10:37:45 +1200
commit3faee8ab3274c1df25a9806526bcb7466be7107a (patch)
treeafc4f1f0f1b8ff9dfea888d997a5df6e6c1082fe /bin
parentChange try(1) to POSIX sh(1) (diff)
downloaddotfiles-3faee8ab3274c1df25a9806526bcb7466be7107a.tar.gz
dotfiles-3faee8ab3274c1df25a9806526bcb7466be7107a.zip
Ignore SC2064 from shellcheck
We actually want the behaviour it thinks is erroneous. In bin/try line 39: trap "cleanup $sig" "$sig" ^-- SC2064: Use single quotes, otherwise this expands now rather than when signalled.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/rndl1
-rwxr-xr-xbin/tlcs1
-rwxr-xr-xbin/try1
3 files changed, 3 insertions, 0 deletions
diff --git a/bin/rndl b/bin/rndl
index 14721539..c4b9e29c 100755
--- a/bin/rndl
+++ b/bin/rndl
@@ -10,6 +10,7 @@ if [ "$#" -eq 0 ] ; then
fi
}
for sig in EXIT HUP INT TERM ; do
+ # shellcheck disable=SC2064
trap "cleanup $sig" "$sig"
done
td=$(mktd rndl) || exit
diff --git a/bin/tlcs b/bin/tlcs
index 996fb5ce..d34e65bf 100755
--- a/bin/tlcs
+++ b/bin/tlcs
@@ -77,6 +77,7 @@ cleanup() {
fi
}
for sig in EXIT HUP INT TERM ; do
+ # shellcheck disable=SC2064
trap "cleanup $sig" "$sig"
done
td=$(mktd "$self") || exit
diff --git a/bin/try b/bin/try
index f01d4ff3..f0cfddf5 100755
--- a/bin/try
+++ b/bin/try
@@ -36,6 +36,7 @@ cleanup() {
fi
}
for sig in EXIT HUP INT TERM ; do
+ # shellcheck disable=SC2064
trap "cleanup $sig" "$sig"
done
td=$(mktd "$self") || exit