Skip to content

Commit

Permalink
fix 'sed -i' in Makefile failure for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyLuLiu committed Jun 13, 2024
1 parent 1d023d7 commit 424f9ff
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 @@ -289,8 +289,8 @@ cross-lint: $(TOOLS_BINDIR)/golangci-lint
.PHONY: gen_release_info
gen_release_info:
@cat release-info.json.sample | sed s/@CRC_VERSION@/$(CRC_VERSION)/ > $(RELEASE_INFO)
@sed -i s/@GIT_COMMIT_SHA@/$(COMMIT_SHA)/ $(RELEASE_INFO)
@sed -i 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)

check-release-info: gen_release_info
cat $(RELEASE_INFO) |jq .
Expand Down

0 comments on commit 424f9ff

Please sign in to comment.