From 81b897c178657ebbe77aee9de6e05a6d146245c0 Mon Sep 17 00:00:00 2001 From: Ace Date: Fri, 17 May 2019 11:55:51 +0200 Subject: [PATCH] Added new dependency --- Installer-with-debug.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Installer-with-debug.sh b/Installer-with-debug.sh index 9472260..9a5bfc3 100644 --- a/Installer-with-debug.sh +++ b/Installer-with-debug.sh @@ -197,6 +197,24 @@ if [ "$option" = 1 ] || [ "$option" = 2 ]; then sudo pip3 install feedparser fi + #pytz for user pi + echo -e "\e[1;36m"Checking if pytz is installed for user pi"\e[0m" + if python3.5 -c "import pytz" &> /dev/null; then + echo 'pytz is installed, skipping installation of this package.' + else + echo 'pytz is not installed, attempting to install now' + pip3 install pytz + fi + + #pytz for user sudo + echo -e "\e[1;36m"Checking if pytz is installed for user sudo"\e[0m" + if sudo python3.5 -c "import pytz" &> /dev/null; then + echo 'pytz is installed, skipping installation of this package.' + else + echo 'pytz is not installed, attempting to install now' + sudo pip3 install pytz + fi + echo -e "\e[1;36m"Finished installing all dependencies"\e[0m" # Clone the repository, then delete some non-required files