mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-27 17:53:35 +05:00
Compare commits
3 Commits
e9aa224c17
...
f59d0fb607
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f59d0fb607 | ||
|
|
6cd9133a15 | ||
|
|
89a9d38d39 |
1
kiauh.sh
1
kiauh.sh
@@ -81,6 +81,7 @@ function kiauh_update_dialog() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check_if_ratos
|
||||||
check_euid
|
check_euid
|
||||||
init_logfile
|
init_logfile
|
||||||
set_globals
|
set_globals
|
||||||
|
|||||||
@@ -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!"
|
||||||
|
|||||||
@@ -28,6 +28,21 @@ function check_euid() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function check_if_ratos() {
|
||||||
|
if [[ -n $(which ratos) ]]; then
|
||||||
|
echo -e "${red}"
|
||||||
|
top_border
|
||||||
|
echo -e "| !!! RatOS 2.1 or greater detected !!! |"
|
||||||
|
echo -e "| |"
|
||||||
|
echo -e "| KIAUH does currently not support RatOS. |"
|
||||||
|
echo -e "| If you have any questions, please ask for help on the |"
|
||||||
|
echo -e "| RatRig Community Discord: https://discord.gg/ratrig |"
|
||||||
|
bottom_border
|
||||||
|
echo -e "${white}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
#================================================#
|
#================================================#
|
||||||
#============= MESSAGE FORMATTING ===============#
|
#============= MESSAGE FORMATTING ===============#
|
||||||
#================================================#
|
#================================================#
|
||||||
|
|||||||
Reference in New Issue
Block a user