From: rhatto Date: Wed, 3 Dec 2008 00:04:57 +0000 (+0000) Subject: trying again to fix commit_changes X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=4b00b295e161b851ba650010eff1c771d5eb5b94;p=simplepkg.git trying again to fix commit_changes git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@627 04377dda-e619-0410-9926-eae83683ac58 --- diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh index 7d556fb..1bafb42 100644 --- a/trunk/lib/common.sh +++ b/trunk/lib/common.sh @@ -716,9 +716,9 @@ function commit_changes { chown_svn $repos && chgrp_svn $repos cd $repos if [ ! -z "$1" ]; then - if tmpfile=`mktemp -t simplepkg_commit.XXXXXX`; then - chown_svn $tmpfile && chgrp_svn $tmpfile + if tmpfile=`mktemp $TMP/simplepkg_commit.XXXXXX`; then echo $* > $tmpfile + chown_svn $tmpfile && chgrp_svn $tmpfile su_svn commit -F $tmpfile rm -f $tmpfile else