aboutsummaryrefslogtreecommitdiff
path: root/trunk/lib/common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/lib/common.sh')
-rw-r--r--trunk/lib/common.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index 45fd6ae..15bad2f 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -569,8 +569,14 @@ function sync_repo {
# input: $1 - svn directory name
# $2 - svn address
[ $# -ne 2 ] && exit 5
- cd $1
- su_svn update || build_repo $1 $2
+
+ local folder url
+ folder="$1"
+ url="$1"
+
+ mkdir -p $folder
+ cd $folder
+ su_svn update || build_repo $folder $url
}