diff options
Diffstat (limited to 'contrib/autotools-patches/apply-all.sh')
-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 | ||