From 70742d6e5e5812b9c092fd86613118cd350bfb0c Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 28 Nov 2008 02:52:04 +0000 Subject: fixes git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@578 04377dda-e619-0410-9926-eae83683ac58 --- trunk/lib/common.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'trunk') 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 } -- cgit v1.2.3