scripts/patch-kernel.sh: do not try to check files after patch
authorGeorge Tsiamasiotis <[email protected]>
Tue, 23 Sep 2025 20:11:19 +0000 (23:11 +0300)
committerRobert Marko <[email protected]>
Mon, 29 Sep 2025 11:33:07 +0000 (13:33 +0200)
commit75ca6bafd614efd1427a979d28d551af775b8e5d
treeff6606a520af91e792f11cd4cbbc86976225e103
parent973cfbadf53519d351baf84858b02582a2f4fbfd
scripts/patch-kernel.sh: do not try to check files after patch

Since we are not using patch -b, *.orig files are only created when
there are conflicts, or never according to posix patch.

As such, it doesn't really make sense to always delete *.orig files
presuming they are patch backups, even if they are patch backups.
Doing so is both deleting potentially useful information for failed
patch applications and creating hard to diagnose bugs [1].

In a similar vein, checking for *.rej files does not add any value
since we're already checking the patch command's return code.

[1]: https://github.com/openwrt/packages/issues/27485

Signed-off-by: George Tsiamasiotis <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20141
Signed-off-by: Robert Marko <[email protected]>
scripts/patch-kernel.sh