]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
cleanup
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 28 Nov 2008 03:10:13 +0000 (03:10 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 28 Nov 2008 03:10:13 +0000 (03:10 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@581 04377dda-e619-0410-9926-eae83683ac58

trunk/lib/common.sh

index 605e05b8d616c974a16415e699cd26fc4539fa7f..368cbd1a3078a58e09ce8186e1b1f3297456dbfe 100644 (file)
@@ -510,7 +510,7 @@ function svn_check {
   # check if a file is under svn
   # usage: svn_check <file>
 
-  local cwd folder
+  local cwd folder retval
 
   cwd="`pwd`"
   folder="`dirname $1`"
@@ -521,19 +521,20 @@ function svn_check {
     cd $folder
 
     if [ "`svn status $file | awk '{ print $1 }'`" == "?" ]; then
-      cd $cwd
-      return 1
+      retval="1"
     else
-      cd $cwd
-      return 0
+      retval="0"
     fi
 
   else
 
-    return 1
+    retval="1"
 
   fi
 
+  cd $cwd
+  return $retval
+
 }
 
 function build_repo {