cd back to the root path before removing the build dir, since some systems
authorDaniel Stenberg <daniel@haxx.se>
Mon, 23 Feb 2004 07:08:59 +0000 (07:08 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 23 Feb 2004 07:08:59 +0000 (07:08 +0000)
refuse to remove the dir otherwise!

testcurl.sh

index be71093..1c64187 100755 (executable)
@@ -46,6 +46,7 @@ log() {
 die(){
     text=$1
     log "$text"
+    cd $pwd # cd back to the original root dir
 
     if test -n "$pwd/$build"; then
       # we have a build directory name, remove the dir
@@ -131,6 +132,7 @@ buildlog="buildlog-$$"
 
 # remove any previous left-overs
 rm -rf build-*
+rm -rf buildlog-*
 
 # create a dir to build in
 mkdir $build