diff options
Diffstat (limited to 'trunk/lib/common.sh')
-rw-r--r-- | trunk/lib/common.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh index b796003..605e05b 100644 --- a/trunk/lib/common.sh +++ b/trunk/lib/common.sh @@ -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 |