From: Daniel Stenberg Date: Thu, 19 Feb 2004 12:10:07 +0000 (+0000) Subject: remove the build.log too at exit, and also use the proper $pwd prefix X-Git-Tag: cares-1_1_0~234 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ca7af3419053f8f5b227514cdef2378b75a5d8f;p=curl 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' --- diff --git a/testcurl.sh b/testcurl.sh index f4f4dfbc9..4cbe95d55 100755 --- a/testcurl.sh +++ b/testcurl.sh @@ -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 }