#!/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
}

echo "Uninstalling box86 from system."
cd ~/box86/build
sudo make uninstall
cd $HOME

echo "moving box86 folder to trash."
gio trash ~/box86

exit 0
