From 6ca7af3419053f8f5b227514cdef2378b75a5d8f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 19 Feb 2004 12:10:07 +0000 Subject: 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' --- testcurl.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 } -- cgit v1.2.3