#!/bin/bash

purge_packages || exit 1
cd pikiss-gui || error 'Failed to cd into pikiss-gui directory'
./uninstall.sh || error 'Failed to run PiKISS-GUI uninstall script'
cd .. || error 'Failed to cd out of pikiss-gui directory'
rm -rf pikiss-gui || sudo rm -rf pikiss-gui || warning 'Failed to remove pikiss-gui directory'
exit 0
