From 185795428e0761fadeea896a9695cfbf16290510 Mon Sep 17 00:00:00 2001 From: rhatto Date: Thu, 15 Jan 2009 19:23:42 +0000 Subject: minor fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@745 04377dda-e619-0410-9926-eae83683ac58 --- trunk/lib/common.sh | 4 +++- trunk/src/mkbuild | 2 +- 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 -- cgit v1.2.3