terraform-linters / tflint

A Pluggable Terraform Linter
Mozilla Public License 2.0
4.98k stars 357 forks source link

install: enable `pipefail` catch `curl` errors #1978

Closed Ry4an closed 9 months ago

Ry4an commented 9 months ago

Command output is piped into subsequent commands three places in this script (two curls and one dpkg) and in all of them the script exiting with error, as requested with the existing set -e, would be preferable to silently succeeding if the curl or dpkg command fails to produce the expected text output. The --fail option passed to curl both times, explicitly requests this behavior, but without -o pipefail it does not work.