Skip to content

Commit

Permalink
Replace bash to sh in Makefile
Browse files Browse the repository at this point in the history
Some operating systems do not ship with bash by default, e.g. BSDs,
which breaks the build.
  • Loading branch information
kimminss0 committed Dec 20, 2024
1 parent b2c3e56 commit e93e2df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
SHELL := bash
GO ?= go
GOOS ?= $(shell $(GO) env GOOS)

Expand All @@ -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
Expand Down

0 comments on commit e93e2df

Please sign in to comment.