Commit c7d9fdb6 authored by Diego Pasqualin's avatar Diego Pasqualin
Browse files Add trap to clean temp files before exit

Signed-off-by: default avatarDiego Pasqualin <>
parent 70419eaf
......@@ -29,6 +29,13 @@ TMPDIR=$(mktemp -d --tmpdir=/tmp)
PUBLISHSCRIPT="$(dirname $0)/"
function clean() {
rm -rf $TMPDIR
exit 0
trap "clean" SIGINT SIGTERM
function buildURL() {
local status="$1"
echo "$status/main/binary-i386/Packages"
......@@ -141,4 +148,5 @@ for pkgVersionFrom in $fromPkgAndVersion; do
rm -rf $TMPDIR
# Clean temp files before exit
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment