summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xskripti/sponge_only_on_success.sh1
1 files changed, 1 insertions, 0 deletions
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