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=
|
cur=
|
||||||
while [ "$cur" != "$x" ]; do
|
while [ "$cur" != "$x" ]; do
|
||||||
x=${x# }
|
x=${x# }
|
||||||
|
x=${x#tag: }
|
||||||
cur=${x%%,*}
|
cur=${x%%,*}
|
||||||
cur=${cur#tag: }
|
|
||||||
cur=${cur# }
|
|
||||||
tagpost=${cur#$PROD-}
|
tagpost=${cur#$PROD-}
|
||||||
if [ "$cur" != "$tagpost" ]; then
|
if [ "$cur" != "$tagpost" ]; then
|
||||||
echo "$tagpost"
|
echo "$tagpost"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue