Fix Box86 uninstall script not having the DIRECTORY variable

pull/623/head
Itai Nelken 3 years ago committed by GitHub
parent 39bb337804
commit 93769bedcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,7 @@
#!/bin/bash
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
function error {
echo -e "\\e[91m$1\\e[39m"
exit 1
@ -26,11 +28,10 @@ if [ ! -z "$(file "$(readlink -f "/sbin/init")" | grep 64)" ]; then
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1
sudo dpkg --remove-architecture armhf || warning "Failed to remove armhf architecture.\nMost likely, you already had other armhf packages installed prior to this."
sudo dpkg --remove-architecture armhf || warning "armhf architecture should be removed by now, but it isn't!"
check-armhf
if [[ "$ARMHF" == *"armhf"* ]]; then
warning "armhf architecture should be removed by now, but it isn't!"
warning "You probably have some other programs using it, remove it by running 'sudo dpkg --remove-architecture armhf'."
warning "You probably have some other programs using it, remove it by running 'sudo dpkg --remove-architecture armhf'."
fi
elif [ ! -z "$(file "$(readlink -f "/sbin/init")" | grep 32)" ]; then
@ -41,4 +42,4 @@ else
fi
echo "running 'sudo apt update'..."
sudo apt update
sudo apt update

Loading…
Cancel
Save