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

trunk/lib/common.sh

index b79600308485856a42d4a1959197efa56d8b7e0f..605e05b8d616c974a16415e699cd26fc4539fa7f 100644 (file)
@@ -521,13 +521,13 @@ function svn_check {
     cd $folder
 
     if [ "`svn status $file | awk '{ print $1 }'`" == "?" ]; then
+      cd $cwd
       return 1
     else
+      cd $cwd
       return 0
     fi
 
-    cd $cwd
-
   else
 
     return 1
@@ -655,7 +655,7 @@ function su_svn {
 function chown_svn {
 
   # set svn folder ownership
-  if [ ! -z "$SVN_USER" ] && [ ! -z "$1" ]; then
+  if [ ! -z "$SVN_USER" ] && [ ! -e "$1" ]; then
     chown -R $SVN_USER $1
   fi
 
@@ -664,7 +664,7 @@ function chown_svn {
 function chgrp_svn {
 
   # set svn folder group
-  if [ ! -z "$SVN_GROUP" ] && [ ! -z "$1" ]; then
+  if [ ! -z "$SVN_GROUP" ] && [ ! -e "$1" ]; then
     chgrp -R $SVN_GROUP $1
   fi