summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-11-24 13:28:00 +0100
committerErich Eckner <git@eckner.net>2017-11-24 13:28:00 +0100
commitb999a4796f725b31772fe07b161dd3db1af23771 (patch)
tree5c1c5f357201c0b4fc6a6f9ced87a9386b85b2d4
parent8d56cd6f2f2c1ab1a6134a9d708bd6fdcaa9f09e (diff)
downloadMake-b999a4796f725b31772fe07b161dd3db1af23771.tar.xz
ewemake.in: trap verwenden
-rwxr-xr-xewemake.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/ewemake.in b/ewemake.in
index 985e3f9..2bab09d 100755
--- a/ewemake.in
+++ b/ewemake.in
@@ -3,7 +3,8 @@
# ewemake verision #VERSION# - a wrapper for Make
tmpDatei="$(mktemp)"
+trap 'rm -f "${tmpDatei}"' EXIT
+
Make -l -A "${tmpDatei}"
chmod +x "${tmpDatei}"
"${tmpDatei}"
-rm -f "${tmpDatei}"