Project

General

Profile

« Previous | Next » 

Revision 9321

lib/sh/util.sh: `set -o`: added pipefail option, to ensure that exit statuses (esp. for errexit) also work with pipelines (a|b)

View differences:

lib/sh/util.sh
1 1
#!/bin/bash -e
2
set -o errexit # in case caller did not have -e in #! line
2
set -o errexit pipefail # errexit in case caller did not have -e in #! line
3 3

  
4 4
if test ! "$_util_sh_include_guard_utils"; then
5 5
_util_sh_include_guard_utils=1

Also available in: Unified diff