From fdb795022217c6a4e8315bd689c8212f110ee756 Mon Sep 17 00:00:00 2001 From: 3DPrintingGeek <84936569+3DPrintingGeek@users.noreply.github.com> Date: Thu, 11 Apr 2024 11:33:14 +0200 Subject: [PATCH] corrects path to config folder On installation the git repository is initialized inside the $PRINTER_DATA_FOLDER/config directory. In the remove script the deletion of .git and .gitignore is incorecctly trying to delete the files in the $PRINTER_DATA_FOLDER directory. Added "/config" to fix this. --- scripts/git_backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/git_backup.sh b/scripts/git_backup.sh index 0ea6ba7..45da443 100755 --- a/scripts/git_backup.sh +++ b/scripts/git_backup.sh @@ -65,7 +65,7 @@ function remove_git_backup(){ echo -e "Info: Removing files..." rm -f "$HS_CONFIG_FOLDER"/git-backup.cfg rm -f "$INITD_FOLDER"/S52Git-Backup - rm -rf "$PRINTER_DATA_FOLDER"/.git + rm -rf "$PRINTER_DATA_FOLDER"/config/.git if grep -q "include Helper-Script/git-backup" "$PRINTER_CFG" ; then echo -e "Info: Removing Git Backup configurations in printer.cfg file..." sed -i '/include Helper-Script\/git-backup\.cfg/d' "$PRINTER_CFG"