From 5c2581ce27dc81955759232d459bcbe114782ed0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Wed, 20 Sep 2023 18:05:03 +0200 Subject: trap exit tmpfile on sponge*.sh --- skripti/sponge_only_on_success.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/skripti/sponge_only_on_success.sh b/skripti/sponge_only_on_success.sh index 6f6f65b..8b3ed30 100755 --- a/skripti/sponge_only_on_success.sh +++ b/skripti/sponge_only_on_success.sh @@ -1,6 +1,7 @@ #!/bin/bash p=`rev <<<$0 | cut -d/ -f1 | rev` t=`mktemp -p "" $p.XXX` +trap "rm $t" EXIT o=$1 shift $@ > $t -- cgit v1.2.3