From 3556a009ec7fdb75a0415db78338108c52e71658 Mon Sep 17 00:00:00 2001 From: coderus Date: Fri, 6 Jan 2023 19:54:49 +0100 Subject: [PATCH] refactor(klipper): Do not clone in Update if no dir exists --- scripts/klipper.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/klipper.sh b/scripts/klipper.sh index ecfde5f..de6f9d2 100644 --- a/scripts/klipper.sh +++ b/scripts/klipper.sh @@ -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"