Addition due to relative path

Since the relative path feature searches for the Calendar folder, after updating it will lead to errors (i.e. 2 folder named Calendar). To overcome this error, during updating, the old Calendar folder will be renamed to 'Calendar-old'
This commit is contained in:
Ace 2019-05-02 14:06:17 +02:00 committed by GitHub
parent b7dccc38fa
commit aa41fb67f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,8 @@ if [ "$option" = 1 ]; then
sleep 2
cp -r /home/pi/Inky-Calendar /home/pi/Inky-Calendar-old
sudo rm -r /home/pi/Inky-Calendar
mv /home/pi/Inky-Calendar-old/Calendar /home/pi/Inky-Calendar-old/Calendar-old #added due to relative path which searches for
# the 'Calendar' folder
echo "Updating now..."
cd
else