From 805dec2b4dabafe752ba88151d8a085f2f867411 Mon Sep 17 00:00:00 2001 From: lightmaster <5307827+lightmaster@users.noreply.github.com> Date: Sat, 6 Apr 2024 03:30:51 -0400 Subject: [PATCH] Fix shell_check() Change the shell_check to check the current shell, instead of the default shell --- misc/build.func | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/build.func b/misc/build.func index bac97de5..498cee4e 100644 --- a/misc/build.func +++ b/misc/build.func @@ -73,7 +73,7 @@ msg_error() { # Check if the shell is using bash shell_check() { - if [[ "$(basename "$SHELL")" != "bash" ]]; then + if [[ "$(basename "$0")" != "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..."