[MM-45519] Fix auto updater file patch script (#2189)

This commit is contained in:
Devin Binnie 2022-07-05 13:10:59 -04:00 committed by GitHub
parent aa21179f8f
commit ae1faeae2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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