1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-07-25 17:21:59 -07:00

Replace bash to sh in Makefile ()

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

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