libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit b800cc1ec295f401a448b43f952bb27ef102d15d
parent 78784ce6dbe28f950444edc0d9a785e7ac35dc0b
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sun, 26 Dec 2021 17:42:32 +0300

contrib/autotools-patches/apply-all.sh: implemented correct return value

Diffstat:
Mcontrib/autotools-patches/apply-all.sh | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/contrib/autotools-patches/apply-all.sh b/contrib/autotools-patches/apply-all.sh @@ -30,5 +30,9 @@ for patch in ${patches[@]}; do patch -N -p1 --no-backup-if-mismatch -r - -i "${patchesdir}/${patch}" || failed+=("$patch") done -[[ -n "${failed[@]}" ]] && printf 'Failed patch: %s\n' "${failed[@]}" >&2 +if [[ -n "${failed[@]}" ]]; then + printf 'Failed patch: %s\n' "${failed[@]}" >&2 + exit 2 +fi +exit 0