mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Prevent info about unset server version being printed during logroll or config command
This commit is contained in:
parent
556733d192
commit
299d2b0b00
4
init/msm
4
init/msm
@ -1782,7 +1782,9 @@ server_property() {
|
||||
if [[ -z "${VERSIONS_NEWEST_MINECRAFT_PATH}" ]]; then
|
||||
msm_warning "No version set for server, and no default found. Please use 'msm update' to download defaults"
|
||||
else
|
||||
msm_info "Assuming 'minecraft/${VERSIONS_NEWEST_MINECRAFT_VERSION}' for this server. You should override this value by adding 'msm-version=minecraft/x.x.x' to '${SERVER_CONF[$1]}' to make this message go away"
|
||||
if [[ ! "$arg" =~ logroll|config ]]; then
|
||||
msm_info "Assuming 'minecraft/${VERSIONS_NEWEST_MINECRAFT_VERSION}' for this server. You should override this value by adding 'msm-version=minecraft/x.x.x' to '${SERVER_CONF[$1]}' to make this message go away"
|
||||
fi
|
||||
SERVER_VERSION_CONF[$1]="${VERSIONS_NEWEST_MINECRAFT_PATH}"
|
||||
fi
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user