Do not quote variable assignments.
diff --git a/git-flow-support b/git-flow-support
index 2edd46e..07c9ed2 100644
--- a/git-flow-support
+++ b/git-flow-support
@@ -34,7 +34,7 @@
typeset support_branches
typeset current_branch
typeset short_names
- support_branches="$(echo "$LOCAL_BRANCHES" | grep "^$PREFIX")"
+ support_branches=$(echo "$LOCAL_BRANCHES" | grep "^$PREFIX")
if [ -z "$support_branches" ]; then
warn "No support branches exist."
exit 0
@@ -53,7 +53,7 @@
typeset branch
for branch in $short_names; do
- typeset fullname="$PREFIX$branch"
+ typeset fullname=$PREFIX$branch
typeset base=$(git merge-base "$fullname" "$MASTER_BRANCH")
typeset master_sha=$(git rev-parse "$MASTER_BRANCH")
typeset branch_sha=$(git rev-parse "$fullname")
@@ -70,9 +70,9 @@
typeset tagname=$(git name-rev --tags --no-undefined --name-only $base)
typeset nicename
if [ "$tagname" != "" ]; then
- nicename="$tagname"
+ nicename=$tagname
else
- nicename="$(git rev-parse --short $base)"
+ nicename=$(git rev-parse --short $base)
fi
printf "(based on $nicename)"
fi
@@ -94,8 +94,8 @@
eval set -- "${FLAGS_ARGV}"
# read arguments into global variables
- VERSION="$1"
- BASE="$2"
+ VERSION=$1
+ BASE=$2
BRANCH=$PREFIX$VERSION
}