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.
Command output is piped into subsequent commands three places in this script (two
curl
s and onedpkg
) and in all of them the script exiting with error, as requested with the existingset -e
, would be preferable to silently succeeding if the curl ordpkg
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.