diff --git a/download_and_compile.sh b/download_and_compile.sh index 034c5a3..cfac4cf 100755 --- a/download_and_compile.sh +++ b/download_and_compile.sh @@ -108,13 +108,13 @@ function _gitUpdate(){ git diff --exit-code 2>&1 > /dev/null if [ $? != 1 ]; then set -e - git checkout -f $branch git pull -r + git checkout -f $branch else set -e git stash save -u -q - git checkout -f $branch git pull -r + git checkout -f $branch git stash pop -q fi }