diff options
author | Diana Picus <diana.picus@linaro.org> | 2016-04-25 18:04:06 +0300 |
---|---|---|
committer | Diana Picus <diana.picus@linaro.org> | 2016-04-26 16:38:43 +0300 |
commit | 09cd9b6b335f1d877d0f25996d0a7fc771a704d6 (patch) | |
tree | 52aa023c8d128375cedb6a9a1e57b069e48fcc3b /helpers | |
parent | 8501fb1d500512b54ea52d03f9dd3f39f0de5a98 (diff) |
Better error reporting in llvm-sync
Report an error if trying to sync a repo that does not exist
Change-Id: Ifa2c27daa6a2c51a79bfdb57069478e07ff293d6
Diffstat (limited to 'helpers')
-rwxr-xr-x | helpers/llvm-sync | 5 |
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` |