Compare commits

..

2 Commits

Author SHA1 Message Date
Nick Berardi
f59d0fb607 Merge 89a9d38d39 into 6cd9133a15 2024-08-01 07:32:32 -03:00
dw-0
6cd9133a15 fix: detect RatOS 2.1+ as operating system and exit (#490)
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2024-07-31 20:30:33 +02:00
2 changed files with 16 additions and 0 deletions

View File

@@ -81,6 +81,7 @@ function kiauh_update_dialog() {
done
}
check_if_ratos
check_euid
init_logfile
set_globals

View File

@@ -28,6 +28,21 @@ function check_euid() {
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 ===============#
#================================================#