diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-02-26 07:58:49 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-02-26 07:58:49 +0000 |
commit | 0c3c1b390a32c61e67adfaba64a8ff8d3c51774d (patch) | |
tree | d2394fa476343cb4440ac0bd415dd0860329ad3c | |
parent | 9b09193cfd62e2aef20b8cd584c4251f97faa5be (diff) |
The build logs were created in the "wrong" dir and thus never removed
after use, this is an attempt to fix this.
-rwxr-xr-x | testcurl.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/testcurl.sh b/testcurl.sh index 9e2f9c1fa..189d33b0a 100755 --- a/testcurl.sh +++ b/testcurl.sh @@ -75,9 +75,9 @@ die(){ log "removing the $build dir" rm -rf "$pwd/$build" fi - if test -r "$pwd/$buildlog"; then + if test -r "$buildlog"; then # we have a build log output file left, remove it - log "removing the $buildlog file" + log "removing the $buildlogname file" rm -rf "$buildlog" fi log "ENDING HERE" # last line logged! @@ -152,12 +152,16 @@ if [ -d "$CURLDIR" ]; then fi fi build="build-$$" -buildlog="buildlog-$$" +buildlogname="buildlog-$$" +buildlog="$pwd/$buildlogname" # remove any previous left-overs rm -rf build-* rm -rf buildlog-* +# this is to remove old build logs that ended up in the wrong dir +rm -rf $CURLDIR/buildlog-* + # create a dir to build in mkdir $build |