From 6cfe72f59e58fa11db968f466fdc8ab191e19dc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 12 Jul 2010 11:30:54 +0200 Subject: [PATCH] Do not quote in simple assignments. --- sunrise-commit | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sunrise-commit b/sunrise-commit index 679abad..ceba016 100755 --- a/sunrise-commit +++ b/sunrise-commit @@ -82,7 +82,7 @@ check_for_changes() { local output if [ ${SC_VCS%-svn} = git ]; then - output="$(git diff-index --name-only --relative HEAD)" + output=$(git diff-index --name-only --relative HEAD) fi # We do not care about user mangling ChangeLog, we will reset it anyway. @@ -145,11 +145,11 @@ main() { --) shift - commitmsg="${commitmsg+${commitmsg} }${@}" + commitmsg=${commitmsg+${commitmsg} }${@} break ;; *) - commitmsg="${commitmsg+${commitmsg} }${1}" + commitmsg=${commitmsg+${commitmsg} }${1} ;; esac shift @@ -191,7 +191,7 @@ main() { local bns # Let's take a lucky guess bugnumbers consist of 4+ digits. - bns="$(echo "${commitmsg}" | grep -o -E '[0-9]{4,}')" + bns=$(echo "${commitmsg}" | grep -o -E '[0-9]{4,}') # Creating a new ChangeLog? Let's take a look at the commit message. [ ! -f ChangeLog -a -z "${bns}" ] && die 'Please supply the bug number in the initial commit message!'