mirror of
https://github.com/wazuh/wazuh-kubernetes.git
synced 2025-12-10 16:46:36 -06:00
Updated stage replacement for only VERSION.json
This commit is contained in:
parent
b38a659a4c
commit
68795a3308
@ -68,13 +68,10 @@ update_version_in_files() {
|
|||||||
|
|
||||||
update_stage_in_files() {
|
update_stage_in_files() {
|
||||||
local OLD_STAGE="$(echo "${OLD_STAGE}")"
|
local OLD_STAGE="$(echo "${OLD_STAGE}")"
|
||||||
files=( $(grep_command "${OLD_STAGE}" "${DIR}") )
|
sed -i "s/${OLD_STAGE}/${STAGE}/g" "${DIR}/VERSION.json"
|
||||||
for file in "${files[@]}"; do
|
if [[ $(git diff --name-only "${DIR}/VERSION.json") ]]; then
|
||||||
sed -i "s/${OLD_STAGE}/${STAGE}/g" "${file}"
|
FILES_EDITED+=("${DIR}/VERSION.json")
|
||||||
if [[ $(git diff --name-only "${file}") ]]; then
|
fi
|
||||||
FILES_EDITED+=("${file}")
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user