mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-01 12:33:44 +00:00
Removed mmp version replacement
This commit is contained in:
@@ -43,7 +43,7 @@ update_version_in_files() {
|
|||||||
sed -i "/^| v${OLD_VERSION} | | |/i | v${VERSION} | | |" "${file}"
|
sed -i "/^| v${OLD_VERSION} | | |/i | v${VERSION} | | |" "${file}"
|
||||||
sed -i "/^| v${OLD_VERSION} | | |/!s/${OLD_MAYOR}\.${OLD_MINOR}\.${OLD_PATCH}/${NEW_MAYOR}\.${NEW_MINOR}\.${NEW_PATCH}/g" "${file}"
|
sed -i "/^| v${OLD_VERSION} | | |/!s/${OLD_MAYOR}\.${OLD_MINOR}\.${OLD_PATCH}/${NEW_MAYOR}\.${NEW_MINOR}\.${NEW_PATCH}/g" "${file}"
|
||||||
else
|
else
|
||||||
sed -i "s/${OLD_VERSION}/${VERSION}/g" "${file}"
|
sed -i "s/${OLD_MAYOR}\.${OLD_MINOR}\.${OLD_PATCH}/${NEW_MAYOR}\.${NEW_MINOR}\.${NEW_PATCH}/g" "${file}"
|
||||||
fi
|
fi
|
||||||
if [[ $(git diff --name-only "${file}") ]]; then
|
if [[ $(git diff --name-only "${file}") ]]; then
|
||||||
FILES_EDITED+=("${file}")
|
FILES_EDITED+=("${file}")
|
||||||
@@ -63,18 +63,11 @@ update_version_in_files() {
|
|||||||
FILES_EDITED+=("${file}")
|
FILES_EDITED+=("${file}")
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
mmp_files=( $(grep_command "${OLD_MAYOR}${OLD_MINOR}${OLD_PATCH}" "${DIR}" --exclude="CHANGELOG.md") )
|
|
||||||
for file in "${mmp_files[@]}"; do
|
|
||||||
sed -i "s/\b${OLD_MAYOR}${OLD_MINOR}${OLD_PATCH}\b/${NEW_MAYOR}${NEW_MINOR}${NEW_PATCH}/g" "${file}"
|
|
||||||
if [[ $(git diff --name-only "${file}") ]]; then
|
|
||||||
FILES_EDITED+=("${file}")
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
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}") )
|
files=( $(grep_command "${OLD_STAGE}" "${DIR}" --exclude="README.md") )
|
||||||
for file in "${files[@]}"; do
|
for file in "${files[@]}"; do
|
||||||
sed -i "s/${OLD_STAGE}/${STAGE}/g" "${file}"
|
sed -i "s/${OLD_STAGE}/${STAGE}/g" "${file}"
|
||||||
if [[ $(git diff --name-only "${file}") ]]; then
|
if [[ $(git diff --name-only "${file}") ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user