aboutsummaryrefslogtreecommitdiff
path: root/bin/apf
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-19 16:33:28 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-19 16:33:28 +1200
commit15cadff68dfe5bddb5ed75e99773b3f000959ed4 (patch)
tree199e7282f4b1688659cdba9a0c4f7e02be6f3d66 /bin/apf
parentStrip trailing whitespace from apf(1) (diff)
downloaddotfiles-15cadff68dfe5bddb5ed75e99773b3f000959ed4.tar.gz
dotfiles-15cadff68dfe5bddb5ed75e99773b3f000959ed4.zip
Clean up temporary files before apf(1) exec
Diffstat (limited to 'bin/apf')
-rwxr-xr-xbin/apf3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/apf b/bin/apf
index 2c37e8f3..956142fe 100755
--- a/bin/apf
+++ b/bin/apf
@@ -46,6 +46,9 @@ if [ -f "$argf" ] ; then
esac
set -- "$arg" "$@"
done < "$revf"
+
+ # We can remove the temporary stuff now, which allows us to exec safely
+ cleanup
fi
# Run the command with the changed arguments