From b0a5d12ecfed4d12f0bc537aea148aa96889a6a3 Mon Sep 17 00:00:00 2001 From: th33xitus Date: Thu, 19 May 2022 09:17:22 +0200 Subject: [PATCH] refactor(klipper.sh): use clone_klipper inside of update_klipper function Signed-off-by: Dominik Willner th33xitus@gmail.com --- scripts/klipper.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/klipper.sh b/scripts/klipper.sh index fc4ba19..d7b012c 100644 --- a/scripts/klipper.sh +++ b/scripts/klipper.sh @@ -470,10 +470,14 @@ function remove_klipper() { #================================================# function update_klipper() { + read_kiauh_ini "${FUNCNAME[0]}" + local custom_repo="${custom_klipper_repo}" + local custom_branch="${custom_klipper_repo_branch}" + do_action_service "stop" "klipper" if [[ ! -d ${KLIPPER_DIR} ]]; then - cd "${HOME}" && git clone "${KLIPPER_REPO}" + clone_klipper "${custom_repo}" "${custom_branch}" else backup_before_update "klipper" status_msg "Updating Klipper ..."