From c40e949752132ed535105161468b6afa99d872c8 Mon Sep 17 00:00:00 2001 From: Jo Date: Thu, 5 Jan 2023 15:50:53 +0000 Subject: [PATCH] fix(build): fix issue where shell conditional output is passed to go build (#1887) fix issue where shell conditional output is passed to go build (cherry picked from commit 6744fa721f4737f695b40eac0571e3b4b1504b65) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index dcf7cd0b..62e5341e 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ MOFILES := $(POFILES:.po=.mo) FLAGS ?= -trimpath -mod=readonly -modcacherw EXTRA_FLAGS ?= -buildmode=pie LDFLAGS := -X "main.yayVersion=${VERSION}" -X "main.localePath=${SYSTEMLOCALEPATH}" -linkmode=external -FLAGS += $(shell pacman -T 'pacman-git' && echo "-tags next") +FLAGS += $(shell pacman -T 'pacman-git' >/dev/null 2>&1 && echo "-tags next") RELEASE_DIR := ${PKGNAME}_${VERSION}_${ARCH} PACKAGE := $(RELEASE_DIR).tar.gz