X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=deblob-main;h=2d70577076cc8ad40ce77eb5a63fffe2efa1dec5;hb=d1aef279a69dc5d71303f214e025f3b632d20318;hp=bf1ac2062fd3c0b9408802c64ca71e87efbcf5a6;hpb=23a7b07567b806a926973054795d289bea2a3217;p=releases.git diff --git a/deblob-main b/deblob-main index bf1ac2062fd3..2d70577076cc 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 $d" 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 @@ -157,7 +161,7 @@ echo Uncompressing linux-$kver.tar.bz2 into linux-$kver.tar rm -rf linux-$kver linux-$kver.tar bunzip2 < linux-$kver.tar.bz2 > linux-$kver.tar -echo Extracing linux-$kver.tar into linux-$kver +echo Extracting linux-$kver.tar into linux-$kver tar -xf linux-$kver.tar rm -rf linux-$kver-$libre linux-$kver-$libre.tar