From 235cfb673d84dc151aa502f854e5daaf4487feb8 Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 12 Nov 2013 14:43:13 +0100 Subject: ship: trap_add -> defer --- ship/lib/core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ship/lib/core') 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 -- cgit v1.2.3