Skip to content
Snippets Groups Projects
Commit 02095ba0 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

cd back to the root path before removing the build dir, since some systems

refuse to remove the dir otherwise!
parent 32a678ea
No related branches found
No related tags found
No related merge requests found
...@@ -46,6 +46,7 @@ log() { ...@@ -46,6 +46,7 @@ log() {
die(){ die(){
text=$1 text=$1
log "$text" log "$text"
cd $pwd # cd back to the original root dir
if test -n "$pwd/$build"; then if test -n "$pwd/$build"; then
# we have a build directory name, remove the dir # we have a build directory name, remove the dir
...@@ -131,6 +132,7 @@ buildlog="buildlog-$$" ...@@ -131,6 +132,7 @@ buildlog="buildlog-$$"
# remove any previous left-overs # remove any previous left-overs
rm -rf build-* rm -rf build-*
rm -rf buildlog-*
# create a dir to build in # create a dir to build in
mkdir $build mkdir $build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment