From 68795a3308cd8fb2c94e99aa694d3f0fed2ed452 Mon Sep 17 00:00:00 2001 From: c-bordon Date: Thu, 24 Apr 2025 09:22:19 -0300 Subject: [PATCH] Updated stage replacement for only VERSION.json --- tools/repository_bumper.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tools/repository_bumper.sh b/tools/repository_bumper.sh index daa8eb1..5bd339c 100644 --- a/tools/repository_bumper.sh +++ b/tools/repository_bumper.sh @@ -68,13 +68,10 @@ update_version_in_files() { update_stage_in_files() { local OLD_STAGE="$(echo "${OLD_STAGE}")" - files=( $(grep_command "${OLD_STAGE}" "${DIR}") ) - for file in "${files[@]}"; do - sed -i "s/${OLD_STAGE}/${STAGE}/g" "${file}" - if [[ $(git diff --name-only "${file}") ]]; then - FILES_EDITED+=("${file}") - fi - done + sed -i "s/${OLD_STAGE}/${STAGE}/g" "${DIR}/VERSION.json" + if [[ $(git diff --name-only "${DIR}/VERSION.json") ]]; then + FILES_EDITED+=("${DIR}/VERSION.json") + fi } main() {