summaryrefslogtreecommitdiffstats
path: root/ship/lib
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2013-11-12 14:43:13 +0100
committermakefu <github@syntax-fehler.de>2013-11-12 14:43:13 +0100
commit235cfb673d84dc151aa502f854e5daaf4487feb8 (patch)
tree7add5d9b93bb457f69782d56cde8aeff9b25f48a /ship/lib
parent5e85a920a6c9ee68e1171f27d816151d8825b78a (diff)
ship: trap_add -> defer
Diffstat (limited to 'ship/lib')
-rw-r--r--ship/lib/core2
1 files changed, 1 insertions, 1 deletions
diff --git a/ship/lib/core b/ship/lib/core
index 80be5d2e..1ef1fbf9 100644
--- a/ship/lib/core
+++ b/ship/lib/core
@@ -8,7 +8,7 @@ is_root(){
test $(id -u) -eq 0
}
-trap_add(){
+defer(){
#close enough
trapstr="$1;${trapstr:-exit}"
trap "$trapstr" INT TERM EXIT KILL