# You must set the following variables or sequential parameters:
# 1. NEW_VERSION_PATH
@ -397,7 +399,8 @@ installOrUpgradeMinetest(){
fi
if [ -d "$VERSIONED_MT_PATH" ]; then
customExit "You already have an old copy of \"$VERSIONED_MT_PATH\". You must rename it or backup your world and other data then remove it before proceeding."
echo "You already have an old copy of \"$VERSIONED_MT_PATH\". You must rename it if you want to reinstall without losing any extra files you may have put there before upgrading to the current version."
return 2
fi
if [ ! -f "`command -v basename`" ]; then
customExit "Install cannot continue because the basename command is not present."
@ -740,7 +743,8 @@ installOrUpgradeENLIVEN() {
customExit "[installOrUpgradeENLIVEN] The REPO_PATH is not set."
fi
if [ ! -d "$REPO_PATH" ]; then
customExit "[installOrUpgradeENLIVEN] The REPO_PATH does not exist: \"$REPO_PATH\""
echo " * INFO: [installOrUpgradeENLIVEN] Installing ENLIVEN to games will be skipped since you are not using \"$REPO_PATH\""
# ^ Always upgrade the rc file manually if it is not in the repo.
if[ ! -d "$CURRENT_MT_SCRIPTS_DIR"];then
mkdir -p "$CURRENT_MT_SCRIPTS_DIR"
fi
@ -157,7 +162,9 @@ if [ "@$old_release_version" = "@$new_release_version" ]; then
#show_os_release
echo
echo
echo"Version $new_release_version is already installed at $INSTALL_PATH. There is nothing to do."
echo"* Adding the icon is complete. See the Desktop or applications (under Games usually--otherwise, search for Final Minetest in the Activities menu if in GNOME or GNOME-based Ubuntu versions 18.04 or later and you do not have a desktop icons extension enabled)."
echo
echo"Version $new_release_version is already installed at $INSTALL_PATH. There is nothing more to do."