From 0e7f31765f15104686707b9d6cc63cd6568962fb Mon Sep 17 00:00:00 2001 From: HashBang Date: Sun, 17 Jan 2016 10:42:41 -0500 Subject: gello_build: update PATH for depot tools before clean/sync cleaning requires gclient Change-Id: I69c09cd61c3bf413e54bfccab669f962eacb5a49 --- gello_build.sh | 13 ++++++------- 1 file 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 -- cgit v1.2.3