mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
Because the command is part of a pipe sequence, the exitcode defaults to the last in the sequence, which is not the most important one here. Set pipefail, which sets the exit status to the exit code of the last program in the sequence to exit non-zero, or 0 if all succeeded. This prevents the upgrade from barreling onward and setting `postgres.version` improperly if the database upgrade step failed.
2.6 KiB
Executable File
2.6 KiB
Executable File