mirror of
https://github.com/curl/curl.git
synced 2026-07-21 02:47:16 +03:00
cd back to the root path before removing the build dir, since some systems
refuse to remove the dir otherwise!
This commit is contained in:
parent
32a678eab3
commit
02095ba0e1
1 changed files with 2 additions and 0 deletions
|
|
@ -46,6 +46,7 @@ log() {
|
|||
die(){
|
||||
text=$1
|
||||
log "$text"
|
||||
cd $pwd # cd back to the original root dir
|
||||
|
||||
if test -n "$pwd/$build"; then
|
||||
# we have a build directory name, remove the dir
|
||||
|
|
@ -131,6 +132,7 @@ buildlog="buildlog-$$"
|
|||
|
||||
# remove any previous left-overs
|
||||
rm -rf build-*
|
||||
rm -rf buildlog-*
|
||||
|
||||
# create a dir to build in
|
||||
mkdir $build
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue