From 60b34d81ec97f8f16c08cede5180a7612884d801 Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Thu, 17 Feb 2011 01:05:52 -0800 Subject: [PATCH] vars.do: an improvement on the previous patch. It would still loop infinitely if a string was "master " (trailing space). --- version/vars.do | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/version/vars.do b/version/vars.do index 59f80ad..97b6c42 100644 --- a/version/vars.do +++ b/version/vars.do @@ -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"