X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=deblob-main;h=961243d2f08f51a53ecaa8b6c745a924f0535ce3;hb=cc3f9188a958ab16d5ac0491b0a49be8ca658e18;hp=bf1ac2062fd3c0b9408802c64ca71e87efbcf5a6;hpb=23a7b07567b806a926973054795d289bea2a3217;p=releases.git diff --git a/deblob-main b/deblob-main index bf1ac2062fd3..961243d2f08f 100755 --- a/deblob-main +++ b/deblob-main @@ -93,6 +93,8 @@ else exit 1 fi +cleanup= + for f in \ linux-$kver-$libre.tar.bz2 \ linux-$kver-$libre.tar.bz2.asc \ @@ -112,6 +114,7 @@ for f in \ echo $f already exists >&2 exit 1 fi + cleanup="$cleanup $f" done for d in \ @@ -123,6 +126,7 @@ for d in \ echo $d already exists >&2 exit 1 fi + cleanup="$cleanup $f" done if test -f $dir/deblob-$kver; then @@ -149,7 +153,7 @@ else fi fi -trap "status=$?; echo cleaning up...; rm -rf orig-linux-$kver linux-$kver linux-$kver-$libre linux-$kver.tar linux-$kver-$libre.tar linux-$kver-$libre.tar.bz2 linux-$kver-$libre.patch linux-$kver-$libre.xdelta; (exit $status); exit" 0 1 2 15 +trap "status=$?; echo cleaning up...; rm -rf $cleanup; (exit $status); exit" 0 1 2 15 set -e