message needs to be quoted

This commit is contained in:
belliash 2012-01-18 17:57:53 +01:00
parent 7bf5211876
commit 81d7b4a6f0
1 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ function pushGit() {
run "git add ." || return 1
STATUS=$(git status --porcelain)
if [ "${STATUS}" != "" ]; then
run "git commit -a -m ${MESSAGE}" || return 1
run "git commit -a -m \"${MESSAGE}\"" || return 1
run "git push" || return 1
fi
return 0
@ -156,7 +156,7 @@ function pushMercurial() {
run "hg add ." || return 1
STATUS=$(hg status)
if [ "${STATUS}" != "" ]; then
run "hg commit -A -m ${MESSAGE}" || return 1
run "hg commit -A -m \"${MESSAGE}\"" || return 1
run "hg push -e ${BINDIR}/ssh_wrapper.sh" || return 1
fi
return 0