diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-11-28 02:55:03 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-11-28 02:55:03 +0000 |
commit | b009ba41dbd54650b47c6e627208ec67415671db (patch) | |
tree | db974c2cbf6b4a7867555d47295673b807423d2f /trunk/lib | |
parent | 70742d6e5e5812b9c092fd86613118cd350bfb0c (diff) | |
download | simplepkg-b009ba41dbd54650b47c6e627208ec67415671db.tar.gz simplepkg-b009ba41dbd54650b47c6e627208ec67415671db.tar.bz2 |
fixes
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@579 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/lib')
-rw-r--r-- | trunk/lib/common.sh | 6 |
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 |