From db1eafcba19d5b2707a7787a555939141a6a89a2 Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Sat, 29 Dec 2012 07:43:29 -0600 Subject: [PATCH] sh/stopwatch: make sure trap exits after cleanup --- lib/sh/stopwatch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sh/stopwatch.sh b/lib/sh/stopwatch.sh index 591bc4e..1ba1ce8 100644 --- a/lib/sh/stopwatch.sh +++ b/lib/sh/stopwatch.sh @@ -37,7 +37,7 @@ END_OF_COPYRIGHT [ "${kvs}" ] || { kvs="$(mktemp -t ".stopwatch.XXXXXXXX")" - trap "rm -f '${kvs}'" exit hup int term kill + trap "rm -f '${kvs}'; exit" exit hup int term kill } want kvs -- 2.42.0