diff --git a/uninstall.sh b/uninstall.sh index ce2fc66..cc97e86 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -15,13 +15,13 @@ systemctl disable nginx 1> /dev/null 2> /dev/null # remove python echo "Uninstalling Python" -for dir in $(whereis python3); +for dir in $(whereis python3 | tr " " "\n" | grep usr/local/bin | tr "\n" " "); do rm -r $dir; done; # remove sqlite echo "Uninstalling Sqlite3" -for dir in $(whereis sqlite3); +for dir in $(whereis sqlite3 | tr " " "\n" | grep usr/local/bin | tr "\n" " "); do rm -r $dir; done;