Use space (' ') instead of '?' as a pattern terminator.
This commit is contained in:
parent
a4dd223d5b
commit
6884523527
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue