summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMinseo Kim <kimminss0@outlook.kr>2025-01-03 13:48:51 +0900
committerGitHub <noreply@github.com>2025-01-03 13:48:51 +0900
commit15ca9ad8eb5036d593e111c04d17c8e8f9f6aa6c (patch)
tree3dc6ba0dd5d3332e27fe8b86ae79f13f0e485f9b /Makefile
parentc2e1861747ba4cdf85d5b9942eadd742d6d4c3f0 (diff)
downloadfzf-15ca9ad8eb5036d593e111c04d17c8e8f9f6aa6c.tar.gz
Replace bash to sh in Makefile (#4138)
Some operating systems do not ship with bash by default, e.g. BSDs, which breaks the build.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7c6bd54b..ea565a0a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,3 @@
-SHELL := bash
GO ?= go
GOOS ?= $(shell $(GO) env GOOS)
@@ -14,7 +13,7 @@ endif
ifeq ($(VERSION),)
$(error Not on git repository; cannot determine $$FZF_VERSION)
endif
-VERSION_TRIM := $(shell sed "s/^v//; s/-.*//" <<< $(VERSION))
+VERSION_TRIM := $(shell echo $(VERSION) | sed "s/^v//; s/-.*//")
VERSION_REGEX := $(subst .,\.,$(VERSION_TRIM))
ifdef FZF_REVISION