Do not quote in simple assignments.

This commit is contained in:
Michał Górny 2010-07-12 11:30:54 +02:00
parent b4454e4e95
commit 6cfe72f59e

View File

@ -82,7 +82,7 @@ check_for_changes() {
local output local output
if [ ${SC_VCS%-svn} = git ]; then if [ ${SC_VCS%-svn} = git ]; then
output="$(git diff-index --name-only --relative HEAD)" output=$(git diff-index --name-only --relative HEAD)
fi fi
# We do not care about user mangling ChangeLog, we will reset it anyway. # We do not care about user mangling ChangeLog, we will reset it anyway.
@ -145,11 +145,11 @@ main() {
--) --)
shift shift
commitmsg="${commitmsg+${commitmsg} }${@}" commitmsg=${commitmsg+${commitmsg} }${@}
break break
;; ;;
*) *)
commitmsg="${commitmsg+${commitmsg} }${1}" commitmsg=${commitmsg+${commitmsg} }${1}
;; ;;
esac esac
shift shift
@ -191,7 +191,7 @@ main() {
local bns local bns
# Let's take a lucky guess bugnumbers consist of 4+ digits. # 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. # 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!' [ ! -f ChangeLog -a -z "${bns}" ] && die 'Please supply the bug number in the initial commit message!'