aboutsummaryrefslogtreecommitdiff
path: root/bin/rndl
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/rndl
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/rndl')
-rwxr-xr-xbin/rndl1
1 files changed, 1 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