From: rhatto Date: Fri, 28 Nov 2008 01:33:00 +0000 (+0000) Subject: fixes X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=861e6e15b6b2e07faa7ffe7d7b4cd2c10a1debd8;p=simplepkg.git fixes git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@575 04377dda-e619-0410-9926-eae83683ac58 --- diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh index d39133d..df42332 100644 --- a/trunk/lib/common.sh +++ b/trunk/lib/common.sh @@ -598,7 +598,9 @@ function svn_copy { cp $orig/$file $dest if [ -d "`dirname $dest`/.svn" ]; then chown_svn $dest && chgrp_svn $dest - svn_add $dest + cwd="`pwd`" + cd `dirname $dest` + svn_add `basename $dest` fi }