aboutsummaryrefslogtreecommitdiff
path: root/trunk/lib/common.sh
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-11-28 03:07:36 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-11-28 03:07:36 +0000
commitf47e692cd2d4d7e68dec7b1add9ae435653e2f8f (patch)
tree4e6a3e1e5c707053e8370a10e67d74445590fa59 /trunk/lib/common.sh
parentb009ba41dbd54650b47c6e627208ec67415671db (diff)
downloadsimplepkg-f47e692cd2d4d7e68dec7b1add9ae435653e2f8f.tar.gz
simplepkg-f47e692cd2d4d7e68dec7b1add9ae435653e2f8f.tar.bz2
fixes
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@580 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/lib/common.sh')
-rw-r--r--trunk/lib/common.sh8
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