refactor: backup full config folder before install of mainsail/fluidd/klipperscreen

we don't know if some files need to be modified. so to be safe, backup all of them no matter what. this will also not create redundant intermediate backups.

Signed-off-by: Dominik Willner th33xitus@gmail.com
This commit is contained in:
th33xitus
2022-05-26 10:13:59 +02:00
parent c241bcb044
commit b2274a686c
3 changed files with 9 additions and 6 deletions

View File

@@ -29,6 +29,9 @@ function install_klipperscreen() {
print_error "${error}" && return
fi
### first, we create a backup of the full klipper_config dir - safety first!
backup_klipper_config_dir
### install KlipperScreen
klipperscreen_setup