Fix shell_check()

Change the shell_check to check the current shell, instead of the default shell
pull/2741/head
lightmaster 1 year ago committed by GitHub
parent fe0b379ed1
commit 805dec2b4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      misc/build.func

@ -73,7 +73,7 @@ msg_error() {
# Check if the shell is using bash # Check if the shell is using bash
shell_check() { shell_check() {
if [[ "$(basename "$SHELL")" != "bash" ]]; then if [[ "$(basename "$0")" != "bash" ]]; then
clear 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 currently not set to Bash. To use these scripts, please switch to the Bash shell."
echo -e "\nExiting..." echo -e "\nExiting..."

Loading…
Cancel
Save