I'm sorry, but my previous PR #4736 contained a mistake and the script
wasn't truly POSIX compliant.
With this PR I fix that mistake.
See relevant shellcheck warning: https://www.shellcheck.net/wiki/SC3010
The changes are minimal and the benefit is quite nice – this script can
now be used to install GoReleaser on e.g. Alpine Linux without `bash`.
`shellcheck run` and `shfmt run` both report no warnings/errors.
- if `VERSION` ends with `-pro`, set `DISTRIBUTION` to `pro`
- if `DISTRIBUTION` is `pro`, and `VERSION` does not have the `-pro`
suffix, add it
closes#4374
Behavior of the `EXIT` condition is not consistent between shells with
regards to abnormal exits and signals. This cleanup should occur always.
https://austingroupbugs.net/view.php?id=621
Sigh, yet another regression from
4b7827829298c2f4a23dfcdc79bd4fcb685ac1bf. I actually _did_ test already
with 10a627c1967a09810473c182d6e1c1dcb8748f33, but for some reason
failed to notice the error. Tested better now :/
cosign v2 update!
- need to use `--yes` to auto-approve prompts
cc/ @cpanato anything else I'm missing?
---------
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
- generate releases.json et al on our github actions workflow
- use those when building and also on our `run` script
- new releases will dispatch the workflow so it re-generates the needed
files
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
* feat: new install anf run script
- move away from deprecated git.io
- support distribution
- verify checksums and signature
closes#3074
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
* fix: rename script
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>