aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trunk/lib/common.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index d31c2fb..b796003 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -582,9 +582,11 @@ function svn_add {
function svn_del {
file="$1"
- if [ -e "$file" ] && [ -d "`dirname $file`/.svn" ] && svn_check $file; then
+ folder="`dirname $file`"
+
+ if [ -e "$file" ] && [ -d "$folder/.svn" ] && svn_check $file; then
chown_svn $file && chgrp_svn $file
- ( cd `dirname $1` && su_svn del --force `basename $file` )
+ ( cd $folder && su_svn del --force `basename $file` )
else
rm -f $file
fi