diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-02-19 12:10:07 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-02-19 12:10:07 +0000 |
commit | 6ca7af3419053f8f5b227514cdef2378b75a5d8f (patch) | |
tree | b012c4c25bb547786dcc1f1acd73a5d31691fba6 /testcurl.sh | |
parent | afa592448775c9f7d20934137b9a840d33b5e934 (diff) | |
download | curl-6ca7af3419053f8f5b227514cdef2378b75a5d8f.tar.gz |
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'
Diffstat (limited to 'testcurl.sh')
-rwxr-xr-x | testcurl.sh | 8 |
1 files 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 } |