Update install-sdk to work on Mac
@@ -4,7 +4,11 @@ DEST="${GOPATH}/bin/operator-sdk"
function install_sdk() {
echo "Downloading the operator-sdk ${SDK_VERSION} into ${DEST}"
+ if [[ "$OSTYPE" == "darwin"* ]]; then
+ curl https://github.com/operator-framework/operator-sdk/releases/download/${SDK_VERSION}/operator-sdk-${SDK_VERSION}-x86_64-apple-darwin -sLo ${DEST}
+ else
curl https://github.com/operator-framework/operator-sdk/releases/download/${SDK_VERSION}/operator-sdk-${SDK_VERSION}-x86_64-linux-gnu -sLo ${DEST}
+ fi
chmod +x ${DEST}
}
