From 15ca9ad8eb5036d593e111c04d17c8e8f9f6aa6c Mon Sep 17 00:00:00 2001 From: Minseo Kim Date: Fri, 3 Jan 2025 13:48:51 +0900 Subject: [PATCH] Replace bash to sh in Makefile (#4138) Some operating systems do not ship with bash by default, e.g. BSDs, which breaks the build. --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7c6bd54..ea565a0 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