From ae1faeae2a1e687547ad82a23c7aa58cef2b266d Mon Sep 17 00:00:00 2001 From: Devin Binnie <52460000+devinbinnie@users.noreply.github.com> Date: Tue, 5 Jul 2022 13:10:59 -0400 Subject: [PATCH] [MM-45519] Fix auto updater file patch script (#2189) --- scripts/patch_updater_yml.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/patch_updater_yml.sh b/scripts/patch_updater_yml.sh index 2a84baef..cbc24262 100755 --- a/scripts/patch_updater_yml.sh +++ b/scripts/patch_updater_yml.sh @@ -12,7 +12,7 @@ if [ "$RELEASE_VERSION" == "" ]; then fi echo "${RELEASE_VERSION}" -if [[ -f ./release/${RELEASE_VERSION}*.yml ]]; then +if compgen -G "./release/${RELEASE_VERSION}*.yml" > /dev/null; then for i in ./release/${RELEASE_VERSION}*.yml; do VERSION=$VERSION yq eval -i '.files[].url |= strenv(VERSION) + "/" + .' $i done