pulp / pulp-openapi-generator

GNU General Public License v2.0
4 stars 24 forks source link

Add a shebang to generate and exit immediately on failure #72

Closed ekohl closed 2 years ago

ekohl commented 2 years ago

bash -e exits immediately if a command fails. This means it doesn't try to run commands in an invalid state. AFAIK this is a bashism so the bash shebang is added.

If the command runs as sh generate.sh it does not use the -e mode and it'll remain POSIX compatible.

ekohl commented 2 years ago

Added [noissue] to the commit.