aboutsummaryrefslogtreecommitdiff
path: root/bin/try
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/try
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/try')
-rwxr-xr-xbin/try1
1 files changed, 1 insertions, 0 deletions
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