From f0333c9b27dcc00de66afcd2441af423b24e8345 Mon Sep 17 00:00:00 2001 From: ducoterra Date: Tue, 16 Apr 2019 21:17:58 -0400 Subject: [PATCH] only uninstall from usr/local/bin --- uninstall.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;