From b843804d51ec3fb747670201b6178896d9a4580d Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Wed, 7 Aug 2019 10:39:05 -0400 Subject: Adjust get_ci_vm.sh for substitution Signed-off-by: Chris Evich --- hack/get_ci_vm.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hack') diff --git a/hack/get_ci_vm.sh b/hack/get_ci_vm.sh index 90e3aea8e..e1588d570 100755 --- a/hack/get_ci_vm.sh +++ b/hack/get_ci_vm.sh @@ -68,9 +68,10 @@ delvm() { } image_hints() { + _BIS=$(egrep -m 1 '_BUILT_IMAGE_SUFFIX:[[:space:]+"[[:print:]]+"' "$LIBPODROOT/.cirrus.yml" | cut -d: -f 2 | tr -d '"[:blank:]') egrep '[[:space:]]+[[:alnum:]].+_CACHE_IMAGE_NAME:[[:space:]+"[[:print:]]+"' \ "$LIBPODROOT/.cirrus.yml" | cut -d: -f 2 | tr -d '"[:blank:]' | \ - grep -v 'notready' | sort -u + sed -r -e "s/\\\$[{]_BUILT_IMAGE_SUFFIX[}]/$_BIS/" | sort -u } show_usage() { -- cgit v1.2.3-54-g00ecf