From: lxoliva Date: Fri, 12 Jun 2009 10:04:32 +0000 (+0000) Subject: More coverage for cleanup. X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=e58b90f3309cbc925b16995e33c924648049b304;p=releases.git More coverage for cleanup. git-svn-id: http://www.fsfla.org/svn/fsfla/software/linux-libre/scripts@5263 559672b5-ba27-0410-b829-e8f1faed8b1b --- diff --git a/deblob-main b/deblob-main index bf1ac2062fd..961243d2f08 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