diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-12-26 17:42:32 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-12-26 17:42:32 +0300 |
commit | b800cc1ec295f401a448b43f952bb27ef102d15d (patch) | |
tree | 13c2b742a7871e07beacb161ce79b394c13f6a76 | |
parent | 78784ce6dbe28f950444edc0d9a785e7ac35dc0b (diff) | |
download | libmicrohttpd-b800cc1ec295f401a448b43f952bb27ef102d15d.tar.gz libmicrohttpd-b800cc1ec295f401a448b43f952bb27ef102d15d.zip |
contrib/autotools-patches/apply-all.sh: implemented correct return value
-rwxr-xr-x | contrib/autotools-patches/apply-all.sh | 6 |
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") |
31 | done | 31 | done |
32 | 32 | ||
33 | [[ -n "${failed[@]}" ]] && printf 'Failed patch: %s\n' "${failed[@]}" >&2 | 33 | if [[ -n "${failed[@]}" ]]; then |
34 | printf 'Failed patch: %s\n' "${failed[@]}" >&2 | ||
35 | exit 2 | ||
36 | fi | ||
34 | 37 | ||
38 | exit 0 | ||