diff options
-rw-r--r-- | trunk/lib/common.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh index d1f16c6..93ebeb1 100644 --- a/trunk/lib/common.sh +++ b/trunk/lib/common.sh @@ -659,7 +659,11 @@ function sync_repo { mkdir -p $folder cd $folder - su_svn update || build_repo $folder $url + if [ -d ".svn" ]; then + su_svn update + else + build_repo $folder $url + fi cd $pwd } |