]> git.ipfire.org Git - thirdparty/postgresql.git/commit
ci: Add missing "set -e" to scripts run by su.
authorThomas Munro <tmunro@postgresql.org>
Thu, 6 Nov 2025 00:24:30 +0000 (13:24 +1300)
committerThomas Munro <tmunro@postgresql.org>
Thu, 6 Nov 2025 01:12:52 +0000 (14:12 +1300)
commitae2381025a4c77662ed5a56c062cbf3355c3d618
treed76fd623e1df7681c9948290a5c81b49e836436b
parent6d8acb777715c401925b7c26e16378b2716aa6a5
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
.cirrus.tasks.yml