Skip to content

Commit 3371ad5

Browse files
committed
🤖 fix: prevent unbound variable errors from system bashrc
Adds --norc to .SHELLFLAGS in Makefile to prevent bash from sourcing /etc/bash.bashrc or ~/.bashrc during build commands. This fixes an issue where system bashrc files containing strict checks (like checking PS1 with set -u) would cause build failures or log spam because make runs shells with -u (nounset).
1 parent 7ba4d15 commit 3371ad5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ SHELL := bash
3333
else
3434
SHELL := /usr/bin/env bash
3535
endif
36-
.SHELLFLAGS := -eu -o pipefail -c
36+
.SHELLFLAGS := --norc -eu -o pipefail -c
3737

3838
# Enable parallel execution by default (only if user didn't specify -j)
3939
ifeq (,$(filter -j%,$(MAKEFLAGS)))

0 commit comments

Comments
 (0)