Fixed some bugs

This commit is contained in:
Ace 2019-04-18 00:41:23 +02:00 committed by GitHub
parent 3ffe644f86
commit 0635adc3b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,11 +88,12 @@ if [ "$option" = 2 ]; then
fi
if [ "$option" = 1 ] || [ "$option" = 2 ]; then
# Clone the repository, then delete some non-required files
echo -e "\e[1;36m"Installing the Inky-Calendar Software for your display"\e[0m"
cd
git clone https://github.com/aceisace/Inky-Calendar
git clone https://github.com/aceisace/Inky-Calendar Inky-Calendar-temp
mkdir Inky-Calendar
cd Inky-Calendar
cd Inky-Calendar-temp
cp -r Calendar /home/pi/Inky-Calendar/
cp README.md /home/pi/Inky-Calendar/
cp LICENSE /home/pi/Inky-Calendar/
@ -101,10 +102,10 @@ if [ "$option" = 1 ] || [ "$option" = 2 ]; then
# Make a copy of the sample settings.py file
cd /home/pi/Inky-Calendar/Calendar
cp settings.py.sample settings.py
cd
# Remove the downloaded (temporary) directory
sudo rm -r Inky-Calendar
cd
sudo rm -r Inky-Calendar-temp
# add a short info
cat > /home/pi/Inky-Calendar/Info.txt << EOF