Skip to content

Commit ada1c6d

Browse files
fix: add nontinteractive env var to brew install
1 parent b82accb commit ada1c6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ brew: xcode ## install homebrew
7070
ifeq ($(UNAME), Darwin)
7171
@if ! command -v brew >/dev/null 2>&1; then \
7272
echo "Installing Homebrew..."; \
73-
/bin/bash -c "$$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"; \
73+
NONINTERACTIVE=1 /bin/bash -c "$$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"; \
7474
else \
7575
echo "brew already installed."; \
7676
fi
7777
else ifeq ($(UNAME), Linux)
7878
@if [ "${ID_LIKE}" = "debian" ]; then \
7979
if ! command -v brew >/dev/null 2>&1; then \
8080
echo "Installing Homebrew..."; \
81-
/bin/bash -c "$$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"; \
81+
NONINTERACTIVE=1 /bin/bash -c "$$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"; \
8282
echo ""; \
8383
echo "To add Homebrew to your PATH, run these commands:"; \
8484
echo 'eval "$$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"'; \

0 commit comments

Comments
 (0)