remove the build directory on exist, if there is any
authorDaniel Stenberg <daniel@haxx.se>
Mon, 15 Dec 2003 08:14:30 +0000 (08:14 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 15 Dec 2003 08:14:30 +0000 (08:14 +0000)
testcurl.sh

index 0f872b27f02cfa1e02a7fdaf7937b16e32c6ad4d..8fe9a6df2b9a26557fd9dcfe294048c8b97d5bc7 100755 (executable)
@@ -38,6 +38,10 @@ export LANG
 
 die(){
     echo "testcurl: ENDING HERE"
+    if test -n "$build"; then
+      # we have a build directory name, remove the dir
+      rm -rf $build
+    fi
     exit 1
 }