mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-24 15:48:27 +00:00
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:
parent
c2e1861747
commit
15ca9ad8eb
3
Makefile
3
Makefile
@ -1,4 +1,3 @@
|
|||||||
SHELL := bash
|
|
||||||
GO ?= go
|
GO ?= go
|
||||||
GOOS ?= $(shell $(GO) env GOOS)
|
GOOS ?= $(shell $(GO) env GOOS)
|
||||||
|
|
||||||
@ -14,7 +13,7 @@ endif
|
|||||||
ifeq ($(VERSION),)
|
ifeq ($(VERSION),)
|
||||||
$(error Not on git repository; cannot determine $$FZF_VERSION)
|
$(error Not on git repository; cannot determine $$FZF_VERSION)
|
||||||
endif
|
endif
|
||||||
VERSION_TRIM := $(shell sed "s/^v//; s/-.*//" <<< $(VERSION))
|
VERSION_TRIM := $(shell echo $(VERSION) | sed "s/^v//; s/-.*//")
|
||||||
VERSION_REGEX := $(subst .,\.,$(VERSION_TRIM))
|
VERSION_REGEX := $(subst .,\.,$(VERSION_TRIM))
|
||||||
|
|
||||||
ifdef FZF_REVISION
|
ifdef FZF_REVISION
|
||||||
|
Loading…
x
Reference in New Issue
Block a user