commit 1b215e49d37329b6c70c72d1b0518fa7fcb112e5 parent fb53113ff6e48a7081c83d35fccc167a8c7e4a10 Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev> Date: Sat, 27 Jun 2026 19:10:53 +0200 precommit_hook.sh: re-enabled pipefail (if supported) Diffstat:
| M | contrib/precommit_hook.sh | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/precommit_hook.sh b/contrib/precommit_hook.sh @@ -13,8 +13,8 @@ # and this notice are preserved. This file is offered as-is, without any # warranty. -# Enable 'pipefail' if supported -- this breaks git commit if -o piefail is not supported! -# set -o pipefail 2>/dev/null || : +# Enable 'pipefail' if supported +(set -o pipefail) 2>/dev/null && set -o pipefail || : # Redirect all output to stderr exec 1>&2