From 6c1c8c5b45ea1bb09f4f208fb92657a0c7f2ba01 Mon Sep 17 00:00:00 2001 From: RPI News <44128563+mobilegmYT@users.noreply.github.com> Date: Fri, 25 Jun 2021 14:53:24 -0600 Subject: [PATCH] Force mcpi modded update (#763) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Force mcpi modded update * And done1 Co-authored-by: Álvaro Torralba --- apps/Minecraft Pi (Modded)/install | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/apps/Minecraft Pi (Modded)/install b/apps/Minecraft Pi (Modded)/install index 8b0b79e..5af180f 100755 --- a/apps/Minecraft Pi (Modded)/install +++ b/apps/Minecraft Pi (Modded)/install @@ -6,22 +6,11 @@ set -e -DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")" -STORAGE="$(dirname "$0")" - function error { echo -e "\\e[91m$1\\e[39m" exit 1 } -## -## Install mcpi-reborn -## - -if [[ "$(lsb_release -cs)" != "buster" && "$(lsb_release -cs)" != "bullseye" && "$(lsb_release -cs)" != "sid" ]]; then - error "Unsupported RPi OS Version! Your RPi OS version is $(lsb_release -cs), but supported versions are Buster, Bullseye, or Sid. Consider searching how to upgrade your version to RPi OS Buster!" -fi - # Wait for apt lock to be released i=0 while sudo fuser /var/{lib/{dpkg,apt/lists},cache/apt/archives}/lock > /dev/null 2>&1 @@ -38,11 +27,10 @@ do done [[ $i -gt 0 ]] && printf "Done.\n" -# Remove Old Minecraft Pi -sudo apt-get remove -y minecraft-pi &>/dev/null || true +# Remove old MCPILs sudo apt-get remove -y mcpil-r mcpil &>/dev/null || true -wget -qO- https://raw.githubusercontent.com/MCPI-Revival/mcpi-packages/master/install.sh | bash &>/dev/null || error "Failed to install apt repo!" +wget -qO- https://raw.githubusercontent.com/MCPI-Revival/mcpi-packages/master/install.sh | bash - &>/dev/null || error "Failed to install APT repo!" # Choose MCPIL to use PS3='Which launcher for MCPI Modded would you like to use? Need help deciding? Ask here: https://discord.com/invite/aDqejQGMMy'