diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2009-01-15 19:23:42 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2009-01-15 19:23:42 +0000 |
commit | 185795428e0761fadeea896a9695cfbf16290510 (patch) | |
tree | 264701f7863546fb67cc7023fb738bab4803174c /trunk | |
parent | 9eeb01dc9229cb6646ba76bd6c385dad71d579f8 (diff) | |
download | simplepkg-185795428e0761fadeea896a9695cfbf16290510.tar.gz simplepkg-185795428e0761fadeea896a9695cfbf16290510.tar.bz2 |
minor fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@745 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk')
-rw-r--r-- | trunk/lib/common.sh | 4 | ||||
-rwxr-xr-x | 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 |