From 42d1f801051d77761a99ca5aaec6aa1c88b90b8f Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Sat, 2 Nov 2024 20:05:56 -0700 Subject: [PATCH] Fix matching goarch --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 36e84c6..8af700e 100644 --- a/Makefile +++ b/Makefile @@ -4,8 +4,7 @@ GOFILES = *.go # Multi-arch targets are generated from this TARGET_ALIAS = $(APP_NAME)-linux-amd64 $(APP_NAME)-linux-arm $(APP_NAME)-linux-arm64 TARGETS = $(addprefix dist/,$(TARGET_ALIAS)) -.QUOTE = " -CURRENT_GOARCH = $(shell go env | awk -F "=" '/GOARCH/ { gsub(/$(.QUOTE)/,"", $$2); print $$2}') +CURRENT_GOARCH = $(shell go env GOARCH) # Default make target will run tests .DEFAULT_GOAL = test