clone.sh: Avoid using && operator as it may swallow errors
"cmd1 && cmd2" would swallow errors in cmd1 and let the script continue
regardless of "set -e" setting, something we don't want.
Related to TFC-352.
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: Iea0c56c225391bbafa078b5b1f4df625d88f4532
diff --git a/clone.sh b/clone.sh
index b5b93a5..c84fd4a 100755
--- a/clone.sh
+++ b/clone.sh
@@ -106,7 +106,8 @@
# fetch and checkout the corresponding refspec
cd ${SHARE_FOLDER}/${REPO_NAME}
- git fetch ${REPO_URL} ${REPO_REFSPEC} && git checkout FETCH_HEAD
+ git fetch ${REPO_URL} ${REPO_REFSPEC}
+ git checkout FETCH_HEAD
echo -e "\n\nShare Folder ${SHARE_FOLDER}/${REPO_NAME} $(git rev-parse --short HEAD)\n\n"
cd $OLDPWD