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:
Avery Pennarun 2011-02-17 01:05:52 -08:00
commit 60b34d81ec

View file

@ -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"