diff options
-rwxr-xr-x | gello_build.sh | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/gello_build.sh b/gello_build.sh index 82922b6..edbffe1 100755 --- a/gello_build.sh +++ b/gello_build.sh @@ -39,6 +39,12 @@ CLEAN=false # Sync # function sync() { + # If we have previously downloaded depot tools using this script + # export its path for us + if [ -d "$TOP_GELLO/depot/depot_tools" ]; then + export PATH=$PATH:$TOP_GELLO/depot/depot_tools + fi + if [ "$CLEAN" == true ]; then cd $TOP_GELLO/env @@ -54,12 +60,6 @@ function sync() { if [ "$NOSYNC" != true ]; then cd $TOP_GELLO/env - # If we have previously downloaded depot tools using this script - # export its path for us - if [ -d "$TOP_GELLO/depot/depot_tools" ]; then - export PATH=$PATH:$TOP_GELLO/depot/depot_tools - fi - echo "Syncing now!" gclient sync -n --no-nag-max local SYNCRET=$? @@ -202,7 +202,6 @@ function getdepot() { ## # Main # - if [ "$1" == "--depot" ]; then getdepot && exit 0 elif [ "$1" == "--help" ]; then |