From 6508cc0a6379aa358c191d5de1b7cb9e94d667f1 Mon Sep 17 00:00:00 2001 From: Henry Gebhardt Date: Tue, 15 Feb 2011 15:12:53 -0800 Subject: [PATCH] version/vars.do: avoid infinite loop if the tag string is " master" (ie. with an extra space) --- version/vars.do | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/version/vars.do b/version/vars.do index 0da7597..59f80ad 100644 --- a/version/vars.do +++ b/version/vars.do @@ -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"