diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-12-01 16:58:03 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-12-01 16:58:03 +0000 |
commit | cca3e877217ae74258f894feef32159737d0d5dc (patch) | |
tree | ab23be048890dccdc12d23c99a11d01fc6c975f0 /trunk/lib | |
parent | ec871ccf1c75afec17d627342b29ffa523d559fa (diff) | |
download | simplepkg-cca3e877217ae74258f894feef32159737d0d5dc.tar.gz simplepkg-cca3e877217ae74258f894feef32159737d0d5dc.tar.bz2 |
fix on su_svn
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@618 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/lib')
-rw-r--r-- | trunk/lib/common.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh index f1635e4..b242d29 100644 --- a/trunk/lib/common.sh +++ b/trunk/lib/common.sh @@ -659,7 +659,11 @@ function su_svn { # execute svn using a different user if [ ! -z "$SVN_USER" ]; then - su $SVN_USER -c "svn $*" + if [ "`whoami`" != "$SVN_USER" ]; then + su $SVN_USER -c "svn $*" + else + svn $* + fi else svn $* fi |