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