From aa41fb67f5ebe1f2f708aa6bfd24169e8b266231 Mon Sep 17 00:00:00 2001 From: Ace Date: Thu, 2 May 2019 14:06:17 +0200 Subject: [PATCH] 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' --- Installer-with-debug.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Installer-with-debug.sh b/Installer-with-debug.sh index 41fc67e..ba438c8 100644 --- a/Installer-with-debug.sh +++ b/Installer-with-debug.sh @@ -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