aboutsummaryrefslogtreecommitdiff
path: root/trunk
diff options
context:
space:
mode:
Diffstat (limited to 'trunk')
-rw-r--r--trunk/lib/common.sh9
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
}