Skip to content

Commit

Permalink
Replace bash to sh in Makefile (#4138)
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 authored Jan 3, 2025
1 parent c2e1861 commit 15ca9ad
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 15ca9ad

Please sign in to comment.