]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
minor fix
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Thu, 15 Jan 2009 19:23:42 +0000 (19:23 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Thu, 15 Jan 2009 19:23:42 +0000 (19:23 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@745 04377dda-e619-0410-9926-eae83683ac58

trunk/lib/common.sh
trunk/src/mkbuild

index c73b65b05a0b7356182ed185b4668c972e0ee0ec..a7fa50c21fa290fcd057f20a62b10151494b016f 100644 (file)
@@ -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
 
 }
 
index fdee5eda2905f4f2317e251cd83da67cd6f372f3..3a3a9beddcc162d8091f28bb8af86f1c16317726 100755 (executable)
@@ -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