#1988 PR merged: Removed file command usage in 400_guess_kernel.sh because it is not reliably working to test if a file is actually a kernel

Labels: bug, fixed / solved / done

jsmeix opened issue at 2018-11-30 10:39:

KERNEL_FILE="/etc/os-release"

"just works" again (ReaR obeys user's commandments) as it did in
https://github.com/rear/rear/pull/1985#discussion_r237451729
see there for the reasoning why.

jsmeix commented at 2018-11-30 10:42:

By the way I simplified the code: Less if conditions actually needed.
My personal preference is to avoid nested code when possible
cf. "Return early, return often" in
https://github.com/rear/rear/wiki/Coding-Style


[Export of Github issue for rear/rear.]