Skip to content

Commit

Permalink
Fix: Makefile logic for sed, the wrong way around
Browse files Browse the repository at this point in the history
* On Darwin, sed requires an extra argument for the backup file whilst on
  Linux is does not.
  • Loading branch information
phantomjinx committed Feb 4, 2021
1 parent f80591f commit 2250fb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ bundle: generate-crd $(BUNDLE_CAMEL_APIS) kustomize
@# Build kustomize manifests
$(KUSTOMIZE) build config/manifests | operator-sdk generate bundle --overwrite --version $(OPERATOR_VERSION) $(BUNDLE_METADATA_OPTS)
@# Move the dockerfile into the bundle directory
ifneq ($(uname -s 2>/dev/null || echo Unknown),Darwin)
ifeq ($(shell uname -s 2>/dev/null || echo Unknown),Darwin)
mv bundle.Dockerfile bundle/Dockerfile && sed -i '.bak' 's/bundle\///g' bundle/Dockerfile
else
mv bundle.Dockerfile bundle/Dockerfile && sed -i 's/bundle\///g' bundle/Dockerfile
Expand Down

0 comments on commit 2250fb3

Please sign in to comment.