Commit 68845235 authored by Vincent Driessen's avatar Vincent Driessen

Use space (' ') instead of '?' as a pattern terminator.

parent a4dd223d
......@@ -38,7 +38,7 @@ cmd_list() {
exit 0
fi
current_branch=$(git branch | grep '^\* ' | grep -v 'no branch' | sed 's/^* //g')
short_names=$(echo "$hotfix_branches" | sed "s?^$PREFIX??g")
short_names=$(echo "$hotfix_branches" | sed "s ^$PREFIX g")
# determine column width first
typeset -i width=0
......
......@@ -50,7 +50,7 @@ cmd_list() {
fi
current_branch=$(git branch | grep '^\* ' | grep -v 'no branch' | sed 's/^* //g')
short_names=$(echo "$release_branches" | sed "s?^$PREFIX??g")
short_names=$(echo "$release_branches" | sed "s ^$PREFIX g")
# determine column width first
typeset -i width=0
......
......@@ -40,7 +40,7 @@ cmd_list() {
exit 0
fi
current_branch=$(git branch | grep '^\* ' | grep -v 'no branch' | sed 's/^* //g')
short_names=$(echo "$support_branches" | sed "s?^$PREFIX??g")
short_names=$(echo "$support_branches" | sed "s ^$PREFIX g")
# determine column width first
typeset -i width=0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment