Fix shell_check()

Change the shell_check to check the current shell, instead of the default shell
This commit is contained in:
lightmaster 2024-04-06 03:30:51 -04:00 committed by GitHub
parent fe0b379ed1
commit 805dec2b4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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..."