Skip to content

Commit 3066273

Browse files
authored
Update shell check (#7796)
1 parent 0e464cb commit 3066273

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

misc/build.func

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ error_handler() {
4242
echo -e "\n$error_message\n"
4343
}
4444

45-
# Check if the shell is using bash
45+
# Check if the current shell is using bash
4646
shell_check() {
47-
if [[ "$(basename "$SHELL")" != "bash" ]]; then
47+
if [[ "$(ps -p $$ -o comm=)" != "bash" ]]; then
4848
clear
49-
msg_error "Your default shell is currently not set to Bash. To use these scripts, please switch to the Bash shell."
49+
msg_error "Your default shell is not bash. Please report this to our github issues or discord."
5050
echo -e "\nExiting..."
5151
sleep 2
5252
exit

0 commit comments

Comments
 (0)