File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -111,15 +111,20 @@ process_config_file() {
111
111
local mc_release=$( yq eval ' .ManagementConsole.release' " $1 " )
112
112
local mc_sha=$( yq eval ' .ManagementConsole.sha' " $1 " )
113
113
114
- # Update MC_VERSION and MC_SHA if values exist and no CLI override
115
- if [ -n " $mc_release " ] && [ " $MC_VERSION " = " latest" ]; then
114
+ # Update MC_VERSION only if --latest is not set and no CLI override
115
+ if [ " $LATEST " = false ] && [ -n " $mc_release " ] && [ " $MC_VERSION " = " latest" ]; then
116
116
MC_VERSION=" $mc_release "
117
117
fi
118
118
if [ -n " $mc_sha " ] && [ -z " $MC_SHA " ]; then
119
119
MC_SHA=" $mc_sha "
120
120
fi
121
121
fi
122
122
123
+ # Force MC_VERSION to "latest" if --latest flag is set
124
+ if [ " $LATEST " = true ]; then
125
+ MC_VERSION=" latest"
126
+ fi
127
+
123
128
# Process MarketplaceItems
124
129
if [ " $LATEST " = true ]; then
125
130
# Set all versions to "latest" if --latest flag is present
You can’t perform that action at this time.
0 commit comments