1
0
mirror of https://github.com/cmur2/python-bme680.git synced 2026-04-05 04:18:44 +02:00

Added BG tooling

This commit is contained in:
Phil Howard
2018-08-14 09:30:42 +00:00
parent 50902ac08e
commit 2dc799a7a4
3 changed files with 90 additions and 0 deletions

24
uninstall.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
PACKAGE="bme680"
printf "BME680 Python Library: Uninstaller\n\n"
if [ $(id -u) -ne 0 ]; then
printf "Script must be run as root. Try 'sudo ./uninstall.sh'\n"
exit 1
fi
cd library
printf "Unnstalling for Python 2..\n"
pip uninstall $PACKAGE
if [ -f "/usr/bin/pip3" ]; then
printf "Uninstalling for Python 3..\n"
pip3 uninstall $PACKAGE
fi
cd ..
printf "Done!\n"