Replace bash to sh in Makefile (#4138)

Some operating systems do not ship with bash by default, e.g. BSDs,
which breaks the build.
This commit is contained in:
Minseo Kim 2025-01-03 13:48:51 +09:00 committed by GitHub
parent c2e1861747
commit 15ca9ad8eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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