only uninstall from usr/local/bin

This commit is contained in:
ducoterra
2019-04-16 21:17:58 -04:00
parent 9c42d31518
commit f0333c9b27

View File

@@ -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;