summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorcyqsimon <28627918+cyqsimon@users.noreply.github.com>2024-05-02 19:52:27 +0800
committerGitHub <noreply@github.com>2024-05-02 20:52:27 +0900
commitdba1644518a74a6263f76900b04d7b7c0ea6e894 (patch)
tree5427e9b00f130cfad8ce09caeba2738e6ff0d718 /Makefile
parent260a65b0fbf5017146242b827db1cc3dd8dc90f2 (diff)
downloadfzf-dba1644518a74a6263f76900b04d7b7c0ea6e894.tar.gz
Fix unreliable GOOS detection (#3763)
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c38f86de..16150e5a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
SHELL := bash
GO ?= go
-GOOS ?= $(word 1, $(subst /, " ", $(word 4, $(shell go version))))
+GOOS ?= $(shell $(GO) env GOOS)
MAKEFILE := $(realpath $(lastword $(MAKEFILE_LIST)))
ROOT_DIR := $(shell dirname $(MAKEFILE))