From aaf7709f64dda5a6cb81eeb96e421ba4189654d6 Mon Sep 17 00:00:00 2001 From: schurig Date: Tue, 03 Jun 2003 11:49:03 +0000 Subject: remove $tempDir after an error --- (limited to 'scripts') diff --git a/scripts/mkipkg b/scripts/mkipkg index 7877078..9c5e184 100755 --- a/scripts/mkipkg +++ b/scripts/mkipkg @@ -314,6 +314,7 @@ tempDir=/tmp/`basename $self`.$$ mkdir -p $tempDir if [ $? != 0 ]; then echo "$self: cannot create $tempDir, exiting..." + rm -rf $tempDir exit 1 fi @@ -331,6 +332,7 @@ createFileList $ctrldir/control.new ipkgFileList if [ "$?" != "0" ]; then echo "$self: ERROR: missing files, not building $control" + rm -rf $tempDir exit 1 fi -- cgit v0.9.0.2