Deleting ~/.octoprint folder in backup.sh script #74
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When KIAUH runs backup.sh and defines all backup functions, there is outside any function a block of code (lines 89-94) which tries delete ~/octoprint* folder. Luckily for us function status_msg is not defined yet and it just print an error when you start KIAUH:
/home/pi/kiauh/scripts/backup.sh: line 92: status_msg: command not foundThanks for reporting that issue!
That really shouldn't have happened...
Lesson learned, never copy and paste codeblocks you want to re-use if it's too late and you just forget to remove that 😅