Skip to content

Commit 280f6a3

Browse files
committed
Fix compound bash command in Makefile
a || b && c && d in bash always runs c and d, which was not the intent, I believe.
1 parent c14e6b9 commit 280f6a3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ GO-CMD := go$(GO-VERSION)
7070
all: gocmd stdlib-targets generate aot glj-imports glj-bins
7171

7272
gocmd:
73-
@$(GO-CMD) version 2>&1 > /dev/null || \
73+
@$(GO-CMD) version 2>&1 > /dev/null || { \
7474
(go install "golang.org/dl/$(GO-CMD)@latest" && \
7575
$(GO-CMD) download > /dev/null && \
76-
$(GO-CMD) version > /dev/null)
76+
$(GO-CMD) version > /dev/null); }
7777

7878
stdlib-targets: $(STDLIB-TARGETS)
7979

0 commit comments

Comments
 (0)