Skip to content

Commit

Permalink
Makefile: provide space as part of sed extension
Browse files Browse the repository at this point in the history
According to man page of `sed` in the mac, `-i extension` there should
be a space between option and extension so that in place changes can happen
without creating a backup file which is created with `-e` extension.
  • Loading branch information
praveenkumar committed Jan 3, 2025
1 parent 5c6743b commit 6df3751
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ cross-lint: $(TOOLS_BINDIR)/golangci-lint gen_release_info
.PHONY: gen_release_info
gen_release_info:
@cat release-info.json.sample | sed s/@CRC_VERSION@/$(CRC_VERSION)/ > $(RELEASE_INFO)
@sed -i"" -e s/@GIT_COMMIT_SHA@/$(COMMIT_SHA)/ $(RELEASE_INFO)
@sed -i"" -e s/@OPENSHIFT_VERSION@/$(OPENSHIFT_VERSION)/ $(RELEASE_INFO)
@sed -i "" -e s/@GIT_COMMIT_SHA@/$(COMMIT_SHA)/ $(RELEASE_INFO)
@sed -i "" -e s/@OPENSHIFT_VERSION@/$(OPENSHIFT_VERSION)/ $(RELEASE_INFO)

.PHONY: linux-release-binary macos-release-binary windows-release-binary
linux-release-binary: LDFLAGS+= $(RELEASE_VERSION_VARIABLES)
Expand Down

0 comments on commit 6df3751

Please sign in to comment.