From 98e332c2e153fe1f7ab352d1fe1be6674ea00c10 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Fri, 11 Apr 2025 09:03:52 +0200 Subject: [PATCH] Upsi, missed shell_check --- misc/helpers.func | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/misc/helpers.func b/misc/helpers.func index ddabc17..53e085e 100644 --- a/misc/helpers.func +++ b/misc/helpers.func @@ -128,7 +128,15 @@ msg_error() { SPINNER_ACTIVE=0 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() { if [[ "$(id -u)" -ne 0 || $(ps -o comm= -p $PPID) == "sudo" ]]; then clear