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:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user