From 923a24a1ccea912610e188585882640f6f49f280 Mon Sep 17 00:00:00 2001 From: tremor021 Date: Mon, 22 Sep 2025 09:34:28 +0200 Subject: [PATCH] Update shell detection --- misc/core.func | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/core.func b/misc/core.func index 26ee3e12..fde0281f 100644 --- a/misc/core.func +++ b/misc/core.func @@ -154,7 +154,7 @@ silent() { # Check if the shell is using bash shell_check() { - if [[ "$(basename "$SHELL")" != "bash" ]]; then + if [[ "$(ps -p $$ -o comm=)" != "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..."