mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
The build logs were created in the "wrong" dir and thus never removed
after use, this is an attempt to fix this.
This commit is contained in:
parent
9b09193cfd
commit
0c3c1b390a
10
testcurl.sh
10
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user