bugfix - cd out of website path before rebuilding on loop

master
Don Bright 2014-04-04 20:10:08 -05:00
parent 57668f0e03
commit b25f744b25
1 changed files with 3 additions and 1 deletions

View File

@ -50,7 +50,6 @@ init_variables()
BRANCH_TO_BUILD=unstable
#BRANCH_TO_BUILD=master
STARTPATH=$PWD
export STARTPATH
# kilobit (not kilobyte!) per second for scp upload
RATELIMIT=420
DOBUILD=1
@ -84,6 +83,7 @@ init_variables()
if [ "`echo $* | grep dry`" ]; then
DRYRUN=1
fi
export STARTPATH
export BRANCH_TO_BUILD
export DOBUILD
export DOUPLOAD
@ -97,6 +97,7 @@ init_variables()
check_starting_path()
{
cd $STARTPATH
if [ -e openscad.pro ]; then
echo 'please start from a clean directory outside of openscad'
exit
@ -385,6 +386,7 @@ update_win_www_download_links()
else
echo dry run, not updating www links
fi
cd $STARTPATH
}
# FIXME: We might be running this locally and not need an ssh agent.