Forráskód Böngészése

fix issue where shell conditional output is passed to go build

jguer 2 éve
szülő
commit
6744fa721f
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      Makefile

+ 1 - 1
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