version/vars.do: avoid infinite loop if the tag string is " master"
(ie. with an extra space)
This commit is contained in:
parent
e27aaf01e7
commit
6508cc0a63
1 changed files with 2 additions and 1 deletions
|
|
@ -17,9 +17,10 @@ names_to_tag()
|
|||
x=${x%\)}
|
||||
cur=
|
||||
while [ "$cur" != "$x" ]; do
|
||||
x=${x# }
|
||||
cur=${x%%,*}
|
||||
cur=${cur#tag: }
|
||||
cur=${cur## }
|
||||
cur=${cur# }
|
||||
tagpost=${cur#$PROD-}
|
||||
if [ "$cur" != "$tagpost" ]; then
|
||||
echo "$tagpost"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue