Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

Commit

Permalink
Fix version and server type failsafe triggering on server install
Browse files Browse the repository at this point in the history
  • Loading branch information
jiriks74 committed Mar 2, 2023
1 parent e31a665 commit 8fb2cf7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions .msman/fabric.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ function check_updates {
download_build=$latest_build
update_version=true
update_build=true
return
else
echo Checking for updates...
fi
Expand Down
3 changes: 3 additions & 0 deletions .msman/paper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ function check_updates {
download_build=$latest_build
update_version=true
update_build=true
return
else
echo Checking for updates...
fi

# Check if $build is empty
Expand Down
2 changes: 1 addition & 1 deletion .msman/version.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

EXTRA_SCRIPTS_VERSION="v2.1.1"
EXTRA_SCRIPTS_VERSION="v2.1.2"
8 changes: 5 additions & 3 deletions msman.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set -e
# and acknowledge the original script and author. #
#############################################################################################################

CURRENT_SCRIPT_VERSION="v2.1.1"
CURRENT_SCRIPT_VERSION="v2.1.2"

# --------------------------------------------------
# You shouldn't need to change anything in this file
Expand Down Expand Up @@ -477,8 +477,10 @@ function main {
get_existing_server

# Check if the server type differs from the one in the config
if [[ $existing_server_type != $server_type ]]; then
ask_server_differs
if [[ $server_file != false ]]; then
if [[ $existing_server_type != $server_type ]]; then
ask_server_differs
fi
fi

# Check if the version and build are valid
Expand Down

0 comments on commit 8fb2cf7

Please sign in to comment.