]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
fixes
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 28 Nov 2008 02:52:04 +0000 (02:52 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 28 Nov 2008 02:52:04 +0000 (02:52 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@578 04377dda-e619-0410-9926-eae83683ac58

trunk/lib/common.sh

index 0810fd74c864fe6df04640b8830ad6ad3a8fb5e0..d31c2fb8d9446289413dd3e01ff2878c528e1fe1 100644 (file)
@@ -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
 
 }