Commit 6ca7af34 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

remove the build.log too at exit, and also use the proper $pwd prefix

to find the files/dirs to remove so that it still works if we "die" after
having done a 'cd'
parent afa59244
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -38,9 +38,13 @@ export LANG

die(){
    echo "testcurl: ENDING HERE"
    if test -n "$build"; then
    if test -n "$pwd/$build"; then
      # we have a build directory name, remove the dir
      rm -rf $build
      rm -rf "$pwd/$build"
    fi
    if test -r "$pwd/build.log"; then
      # we have a build log output file left, remove it
      rm -rf "$pwd/build.log"
    fi
    exit 1
}