Upsi, missed shell_check

This commit is contained in:
Michel Roegl-Brunner 2025-04-11 09:03:52 +02:00
parent c63fdfede4
commit 98e332c2e1

View File

@ -128,7 +128,15 @@ msg_error() {
SPINNER_ACTIVE=0 SPINNER_ACTIVE=0
log_message "ERROR" "$msg" log_message "ERROR" "$msg"
} }
shell_check() {
if [[ "$(basename "$SHELL")" != "bash" ]]; then
clear
msg_error "Your default shell is currently not set to Bash. To use these scripts, please switch to the Bash shell."
echo -e "\nExiting..."
sleep 2
exit
fi
}
root_check() { root_check() {
if [[ "$(id -u)" -ne 0 || $(ps -o comm= -p $PPID) == "sudo" ]]; then if [[ "$(id -u)" -ne 0 || $(ps -o comm= -p $PPID) == "sudo" ]]; then
clear clear