ci: Add missing "set -e" to scripts run by su.

Thomas Munro <tmunro@postgresql.org>

Commit: ae2381025a4c77662ed5a56c062cbf3355c3d618
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2025-11-06T01:12:52Z
Releases: 18.1
ci: Add missing "set -e" to scripts run by su.

If any shell command fails, the whole script should fail.  To avoid
future omissions, add this even for single-command scripts that use su
with heredoc syntax, as they might be extended or copied-and-pasted.

Extracted from a larger patch that wanted to use #error during
compilation, leading to the diagnosis of this problem.

Reviewed-by: Tristan Partin <tristan@partin.io> (earlier version)
Discussion: https://postgr.es/m/DDZP25P4VZ48.3LWMZBGA1K9RH%40partin.io
Backpatch-through: 15

Files

PathChange+/−
.cirrus.tasks.yml modified +16 −0

Discussion