From 7b80098ca6ae2ced983c31ef61d57f0add899c5d Mon Sep 17 00:00:00 2001 From: John Calabrese Date: Wed, 28 Jun 2017 15:21:49 -0400 Subject: [PATCH] fix broken grep to match compatible major/minor version upgrade [#146902091] --- functions/allow_only_patch_upgrades.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/allow_only_patch_upgrades.sh b/functions/allow_only_patch_upgrades.sh index f501fa409..27dec8ec3 100755 --- a/functions/allow_only_patch_upgrades.sh +++ b/functions/allow_only_patch_upgrades.sh @@ -27,7 +27,7 @@ function allow_only_patch_upgrades { --skip-ssl-validation \ deployed-products | grep "${PRODUCT_NAME}" | awk -F"|" '{print $3 }' | awk -F"." '{print $1"."$2}' ) - if [[ `ls ${PRODUCT_DIR} | grep "${deployed_version}"` ]]; then + if [[ `ls ${PRODUCT_DIR} | grep ${deployed_version}` ]]; then echo "we have a safe upgrade for version: ${deployed_version}"; else