Skip to content
Commit d245fbb4 authored by Ralph Siemsen's avatar Ralph Siemsen Committed by Peter Korsgaard
Browse files

apply-patches.sh: detect missing patches



The "patch" command returns an error code only if patches fail
to apply. Therefore the pipleline "cat <patchfile> | patch ..."
does not fail, even if <patchfile> is missing. Fix this by
adding an explicit check for patch file existence.

Based on feedback from buildroot mailing list, also change the
existing check for unsupported patch format into a fatal error.

Signed-off-by: default avatarRalph Siemsen <ralphs@netwinder.org>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 6f1882de
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment