mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-23 07:43:36 +05:00
Compare commits
3 Commits
960d01d6b1
...
40c4a0384c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
40c4a0384c | ||
|
|
d800d356ca | ||
|
|
89a9d38d39 |
@@ -43,6 +43,7 @@ function backup_config_dir() {
|
||||
|
||||
local i=0 folder folder_name target_dir
|
||||
for folder in ${config_pathes}; do
|
||||
if [[ -d ${folder} ]]; then
|
||||
status_msg "Create backup of ${folder} ..."
|
||||
|
||||
folder_name=$(echo "${folder}" | rev | cut -d"/" -f2 | rev)
|
||||
@@ -52,6 +53,7 @@ function backup_config_dir() {
|
||||
i=$(( i + 1 ))
|
||||
|
||||
ok_msg "Backup created in:\n${target_dir}"
|
||||
fi
|
||||
done
|
||||
else
|
||||
ok_msg "No config directory found! Skipping backup ..."
|
||||
|
||||
@@ -264,7 +264,7 @@ function clone_klipper() {
|
||||
status_msg "Cloning Klipper from ${repo} ..."
|
||||
|
||||
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}"
|
||||
else
|
||||
print_error "Cloning Klipper from\n ${repo}\n failed!"
|
||||
|
||||
Reference in New Issue
Block a user