Update shell detection

This commit is contained in:
tremor021
2025-09-22 09:34:28 +02:00
parent 192ab11b62
commit 923a24a1cc

View File

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