Update shell detection
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled

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 # Check if the shell is using bash
shell_check() { shell_check() {
if [[ "$(basename "$SHELL")" != "bash" ]]; then if [[ "$(ps -p $$ -o comm=)" != "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..."