This commit is contained in:
Nick Berardi
2024-02-27 10:59:38 +08:00
committed by GitHub

View File

@@ -264,7 +264,7 @@ function clone_klipper() {
status_msg "Cloning Klipper from ${repo} ..." status_msg "Cloning Klipper from ${repo} ..."
cd "${HOME}" || exit 1 cd "${HOME}" || exit 1
if git clone "${repo}" "${KLIPPER_DIR}"; then if git clone "${repo}" "${KLIPPER_DIR}" --depth 1; then
cd "${KLIPPER_DIR}" && git checkout "${branch}" cd "${KLIPPER_DIR}" && git checkout "${branch}"
else else
print_error "Cloning Klipper from\n ${repo}\n failed!" print_error "Cloning Klipper from\n ${repo}\n failed!"