Deleting ~/.octoprint folder in backup.sh script #74

Closed
opened 2021-03-26 21:41:40 +01:00 by flajzi · 1 comment
flajzi commented 2021-03-26 21:41:40 +01:00 (Migrated from github.com)

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 found

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 found`
dw-0 commented 2021-03-26 21:50:56 +01:00 (Migrated from github.com)

Thanks 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 😅

Thanks 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 😅
Sign in to join this conversation.