aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiana Picus <diana.picus@linaro.org>2016-04-25 18:04:06 +0300
committerDiana Picus <diana.picus@linaro.org>2016-04-26 16:38:43 +0300
commit09cd9b6b335f1d877d0f25996d0a7fc771a704d6 (patch)
tree52aa023c8d128375cedb6a9a1e57b069e48fcc3b
parent8501fb1d500512b54ea52d03f9dd3f39f0de5a98 (diff)
Better error reporting in llvm-sync
Report an error if trying to sync a repo that does not exist Change-Id: Ifa2c27daa6a2c51a79bfdb57069478e07ff293d6
-rwxr-xr-xhelpers/llvm-sync5
1 files changed, 4 insertions, 1 deletions
diff --git a/helpers/llvm-sync b/helpers/llvm-sync
index bd46404..d3e1434 100755
--- a/helpers/llvm-sync
+++ b/helpers/llvm-sync
@@ -7,7 +7,10 @@
. llvm-common
function repo_sync () {
- if [ ! -d $2 ]; then return; fi
+ if [ ! -d $2 ]; then
+ echo " + Not updating $1 (couldn't find source directory)"
+ return;
+ fi
echo " + Updating $1"
cd $2
branch=`get_branch`