aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-12-26 17:42:32 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-12-26 17:42:32 +0300
commitb800cc1ec295f401a448b43f952bb27ef102d15d (patch)
tree13c2b742a7871e07beacb161ce79b394c13f6a76
parent78784ce6dbe28f950444edc0d9a785e7ac35dc0b (diff)
downloadlibmicrohttpd-b800cc1ec295f401a448b43f952bb27ef102d15d.tar.gz
libmicrohttpd-b800cc1ec295f401a448b43f952bb27ef102d15d.zip
contrib/autotools-patches/apply-all.sh: implemented correct return value
-rwxr-xr-xcontrib/autotools-patches/apply-all.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/autotools-patches/apply-all.sh b/contrib/autotools-patches/apply-all.sh
index ed9c4268..87e7edec 100755
--- a/contrib/autotools-patches/apply-all.sh
+++ b/contrib/autotools-patches/apply-all.sh
@@ -30,5 +30,9 @@ for patch in ${patches[@]}; do
30 patch -N -p1 --no-backup-if-mismatch -r - -i "${patchesdir}/${patch}" || failed+=("$patch") 30 patch -N -p1 --no-backup-if-mismatch -r - -i "${patchesdir}/${patch}" || failed+=("$patch")
31done 31done
32 32
33[[ -n "${failed[@]}" ]] && printf 'Failed patch: %s\n' "${failed[@]}" >&2 33if [[ -n "${failed[@]}" ]]; then
34 printf 'Failed patch: %s\n' "${failed[@]}" >&2
35 exit 2
36fi
34 37
38exit 0