This is an automated email from the ASF dual-hosted git repository.

astefanutti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/main by this push:
     new c5936a3  fix(build): Fix OLM bundle generation on Mac OS
c5936a3 is described below

commit c5936a39d10f9e923866c658519300db02b73c35
Author: Antonin Stefanutti <anto...@stefanutti.fr>
AuthorDate: Wed Dec 1 14:58:16 2021 +0100

    fix(build): Fix OLM bundle generation on Mac OS
---
 script/Makefile | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/script/Makefile b/script/Makefile
index d89ba07..be57f3b 100644
--- a/script/Makefile
+++ b/script/Makefile
@@ -403,9 +403,15 @@ operator-sdk:
 ifeq (, $(shell which operator-sdk))
        @{ \
        set -e ;\
-       curl \
-               -L 
https://github.com/operator-framework/operator-sdk/releases/download/$(OPERATOR_SDK_VERSION)/operator-sdk_linux_amd64
 \
-               -o operator-sdk ;\
+       if [ "$(shell uname -s 2>/dev/null || echo Unknown)" == "Darwin" ] ; 
then \
+               curl \
+                       -L 
https://github.com/operator-framework/operator-sdk/releases/download/$(OPERATOR_SDK_VERSION)/operator-sdk_darwin_amd64
 \
+                       -o operator-sdk ; \
+       else \
+               curl \
+                       -L 
https://github.com/operator-framework/operator-sdk/releases/download/$(OPERATOR_SDK_VERSION)/operator-sdk_linux_amd64
 \
+                       -o operator-sdk ; \
+       fi ;\
        chmod +x operator-sdk ;\
        mv operator-sdk $(GOBIN)/ ;\
        }

Reply via email to