refactor(klipper): Do not clone in Update if no dir exists

This commit is contained in:
coderus
2023-01-06 19:54:49 +01:00
parent b131cf56ef
commit 3556a009ec

View File

@@ -536,7 +536,8 @@ function update_klipper() {
do_action_service "stop" "klipper"
if [[ ! -d ${KLIPPER_DIR} ]]; then
clone_klipper "${custom_repo}" "${custom_branch}"
error_msg "Nothing to update, Klipper directory doesn't exists! Please instakk Klipper first."
return
else
backup_before_update "klipper"