forked from wazuh/wazuh-docker
Merge pull request #2261 from wazuh/bug/3018-improve-bumper-early-exits-to-4.14.5
Fix bumper script
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- None
|
- Fix bumper script early exit ([#2261](https://github.com/wazuh/wazuh-docker/pull/2261))
|
||||||
|
|
||||||
### Deleted
|
### Deleted
|
||||||
|
|
||||||
|
|||||||
@@ -146,11 +146,6 @@ main() {
|
|||||||
# Get old version and stage
|
# Get old version and stage
|
||||||
get_old_version_and_stage
|
get_old_version_and_stage
|
||||||
|
|
||||||
if [[ "${OLD_VERSION}" == "${VERSION}" && "${OLD_STAGE}" == "${STAGE}" ]]; then
|
|
||||||
echo "Version and stage are already up to date." | tee -a "${LOG_FILE}"
|
|
||||||
echo "No changes needed." | tee -a "${LOG_FILE}"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
if [[ "${OLD_VERSION}" != "${VERSION}" ]]; then
|
if [[ "${OLD_VERSION}" != "${VERSION}" ]]; then
|
||||||
echo "Updating version from ${OLD_VERSION} to ${VERSION}" | tee -a "${LOG_FILE}"
|
echo "Updating version from ${OLD_VERSION} to ${VERSION}" | tee -a "${LOG_FILE}"
|
||||||
update_version_in_files "${VERSION}"
|
update_version_in_files "${VERSION}"
|
||||||
|
|||||||
Reference in New Issue
Block a user