diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-11-28 02:52:04 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-11-28 02:52:04 +0000 |
commit | 70742d6e5e5812b9c092fd86613118cd350bfb0c (patch) | |
tree | a3c87278b012a3c93917f8d3f2cdff066a269410 | |
parent | 25adde3f586f0bfe4b3d8a59b26080306f1721e4 (diff) | |
download | simplepkg-70742d6e5e5812b9c092fd86613118cd350bfb0c.tar.gz simplepkg-70742d6e5e5812b9c092fd86613118cd350bfb0c.tar.bz2 |
fixes
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@578 04377dda-e619-0410-9926-eae83683ac58
-rw-r--r-- | trunk/lib/common.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh index 0810fd7..d31c2fb 100644 --- a/trunk/lib/common.sh +++ b/trunk/lib/common.sh @@ -581,11 +581,12 @@ function svn_add { function svn_del { - if [ -e "$1" ] && [ -d "`dirname $1`/.svn" ] && svn_check $1; then - chown_svn $1 && chgrp_svn $1 - su_svn del --force $1 + file="$1" + if [ -e "$file" ] && [ -d "`dirname $file`/.svn" ] && svn_check $file; then + chown_svn $file && chgrp_svn $file + ( cd `dirname $1` && su_svn del --force `basename $file` ) else - rm $1 + rm -f $file fi } |