From 306627378e547a6a2982042545e0c218a5475f50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Mon, 22 Sep 2025 09:51:34 +0200 Subject: [PATCH] Update shell check (#7796) --- misc/build.func | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/build.func b/misc/build.func index 0fbe704b2..dd7d87f4f 100644 --- a/misc/build.func +++ b/misc/build.func @@ -42,11 +42,11 @@ error_handler() { echo -e "\n$error_message\n" } -# Check if the shell is using bash +# Check if the current 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." + msg_error "Your default shell is not bash. Please report this to our github issues or discord." echo -e "\nExiting..." sleep 2 exit