zalando / intellij-swagger

A plugin to help you easily edit Swagger and OpenAPI specification files inside IntelliJ IDEA
https://plugins.jetbrains.com/plugin/8347
MIT License
1.18k stars 74 forks source link

Allow to provide release channel in the release script #353

Closed asaarilahti closed 1 year ago

asaarilahti commented 1 year ago

Replace hardcoded value with an argument.

cberg-zalando commented 1 year ago

As far as I remember, the BSD version of sed used by OS X does not support the -i parameter. So what I remember is, that you typically call sed with -e on the file and redirect the input to a temporary file and the use mv to overwrite the old one. This works in both worlds.

asaarilahti commented 1 year ago

As far as I remember, the BSD version of sed used by OS X does not support the -i parameter.

-i is supported in Mac and Ubuntu, so that's probably enough. How about this? https://github.com/zalando/intellij-swagger/pull/353/commits/bf6f004e7160f547cad5999c5d4cbd30e285afbc