Added new dependency

This commit is contained in:
Ace 2019-05-17 11:55:51 +02:00 committed by GitHub
parent f1d4b79dac
commit 81b897c178
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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