aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trunk/lib/common.sh4
-rwxr-xr-xtrunk/src/mkbuild2
2 files changed, 4 insertions, 2 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index c73b65b..a7fa50c 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -652,13 +652,15 @@ function sync_repo {
# $2 - svn address
[ $# -ne 2 ] && exit 5
- local folder url
+ local folder url cwd
folder="$1"
url="$1"
+ cwd="`pwd`"
mkdir -p $folder
cd $folder
su_svn update || build_repo $folder $url
+ cd $pwd
}
diff --git a/trunk/src/mkbuild b/trunk/src/mkbuild
index fdee5ed..3a3a9be 100755
--- a/trunk/src/mkbuild
+++ b/trunk/src/mkbuild
@@ -207,7 +207,7 @@ function set_parameters {
'--sync' )
# Synchronize mkbuilds repository
sync_repo $MKBUILDS_DIR $MKBUILDS_SVN
- cd $WORK
+ exit $?
;;
'-v'|'--version')
# Show program version