]> git.ipfire.org Git - thirdparty/grub.git/commit
commands/cmp: Only return success when both files have the same contents
authorGlenn Washburn <development@efficientek.com>
Thu, 15 Dec 2022 18:13:30 +0000 (12:13 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 10 Jan 2023 15:32:42 +0000 (16:32 +0100)
commit4ba977777cb146c7a2a7ce3fb3c285e1b6cdf952
treebcc5bcccf127b22a60d2c2c154016eb3138e7d37
parent004ffa68ae02b336fa6558307ad861ce1ebe3c1d
commands/cmp: Only return success when both files have the same contents

This allows the cmp command to be used in GRUB scripts to conditionally
run commands based on whether two files are the same.

The command is now quiet by default and the -v switch can be given to enable
verbose mode, the previous behavior.

Update documentation accordingly.

Suggested-by: Li Gen <ligenlive@gmail.com>
Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
docs/grub.texi
grub-core/commands/cmp.c