vars.do: an improvement on the previous patch.
It would still loop infinitely if a string was "master " (trailing space).
This commit is contained in:
parent
6508cc0a63
commit
60b34d81ec
1 changed files with 1 additions and 2 deletions
|
|
@ -18,9 +18,8 @@ names_to_tag()
|
|||
cur=
|
||||
while [ "$cur" != "$x" ]; do
|
||||
x=${x# }
|
||||
x=${x#tag: }
|
||||
cur=${x%%,*}
|
||||
cur=${cur#tag: }
|
||||
cur=${cur# }
|
||||
tagpost=${cur#$PROD-}
|
||||
if [ "$cur" != "$tagpost" ]; then
|
||||
echo "$tagpost"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue