File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- printf " {{LIBNAME:UC}} Python Library: Installer\n\n"
3+ LIBRARY_VERSION=` cat library/setup.py | grep version | awk -F" '" ' {print $2}' `
4+ LIBRARY_NAME=` cat library/setup.py | grep name | awk -F" '" ' {print $2}' `
5+
6+ printf " $LIBRARY_NAME $LIBRARY_VERSION Python Library: Installer\n\n"
47
58if [ $( id -u) -ne 0 ]; then
69 printf " Script must be run as root. Try 'sudo ./install.sh'\n"
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- PACKAGE=" {{LIBNAME}}"
3+ LIBRARY_VERSION=` cat library/setup.py | grep version | awk -F" '" ' {print $2}' `
4+ LIBRARY_NAME=` cat library/setup.py | grep name | awk -F" '" ' {print $2}' `
45
5- printf " {{LIBNAME:UC}} Python Library: Uninstaller\n\n"
6+ printf " $LIBRARY_NAME $LIBRARY_VERSION Python Library: Uninstaller\n\n"
67
78if [ $( id -u) -ne 0 ]; then
89 printf " Script must be run as root. Try 'sudo ./uninstall.sh'\n"
1213cd library
1314
1415printf " Unnstalling for Python 2..\n"
15- pip uninstall $PACKAGE
16+ pip uninstall $LIBRARY_NAME
1617
1718if [ -f " /usr/bin/pip3" ]; then
1819 printf " Uninstalling for Python 3..\n"
19- pip3 uninstall $PACKAGE
20+ pip3 uninstall $LIBRARY_NAME
2021fi
2122
2223cd ..
You can’t perform that action at this time.
0 commit comments