summaryrefslogtreecommitdiffstats
path: root/createlinks
diff options
context:
space:
mode:
Diffstat (limited to 'createlinks')
-rwxr-xr-xcreatelinks4
1 files changed, 1 insertions, 3 deletions
diff --git a/createlinks b/createlinks
index defc0b8..fe1ff6f 100755
--- a/createlinks
+++ b/createlinks
@@ -9,6 +9,7 @@ tmp="$(mktemp -d)"
[ -f "${lock}" ] && exit 1
touch "${lock}"
+trap "rm -rf '${lock}' '${tmp}'" EXIT INT TERM
renice +10 -p $$ > /dev/null
@@ -63,6 +64,3 @@ for repo in ${repos[@]}; do
fi
done
done
-
-rm -rf ${tmp}
-rm -f "${lock}"