Updated MCPI (un)install scripts.

I hope this fixes an obscure installation
error we were getting.
pull/915/head
Alvarito050506 3 years ago
parent 7d44e3809d
commit 8d31425e30

@ -30,9 +30,9 @@ done
[[ $i -gt 0 ]] && printf "Done.\n"
# Remove old MCPILs
sudo apt-get remove -y mcpil-r mcpil || true
sudo apt-get remove -y mcpil-r mcpil &>/dev/null || true
wget -qO- https://raw.githubusercontent.com/MCPI-Revival/mcpi-packages/master/install.sh | sudo bash - || error "Failed to install APT repo!"
wget -q -O - https://raw.githubusercontent.com/MCPI-Revival/mcpi-packages/master/install.sh | sudo bash - || 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
@ -42,15 +42,16 @@ select opt in "${options[@]}"
do
case $opt in
"${options[0]}")
"${DIRECTORY}/pkg-install" "minecraft-pi-reborn-client gmcpil python3 python3-pip" "$(dirname "$0")" || exit 1
MCPIL="gmcpil"
break;;
"${options[1]}")
"${DIRECTORY}/pkg-install" "minecraft-pi-reborn-client jmcpil python3 python3-pip" "$(dirname "$0")" || exit 1
MCPIL="jmcpil"
break;;
"${options[2]}")
break;;
exit 0
*) echo "Invalid option: $REPLY";;
esac
done
"${DIRECTORY}/pkg-install" "${MCPIL} python3-pip" "$(dirname "$0")"
pip3 install mcpi

@ -23,9 +23,9 @@ do
done
[[ $i -gt 0 ]] && printf "Done.\n"
sudo apt-get remove -y minecraft-pi-reborn-native &>/dev/null || true
sudo apt remove -y minecraft-pi-reborn-native &>/dev/null || true
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1
sudo apt-get -y autoremove
sudo apt -y autoremove
sudo rm -f /etc/apt/sources.list.d/mcpi-revival.list
sudo rm -f /etc/apt/{sources.list,trusted.gpg}.d/mcpi-revival.{list,gpg}

Loading…
Cancel
Save