Failed config now returns exit code (#1252311)

Grub would notify the user if the new config was invalid, however, it
did not exit properly with exit code 1. Added the proper exit code.

Resolves: rhbz#1252311
This commit is contained in:
Robert Marshall 2016-01-29 14:49:24 -05:00 committed by Vladimir Serbinenko
parent 15aee573d2
commit 3c3e96d044
1 changed files with 1 additions and 0 deletions

View File

@ -273,6 +273,7 @@ Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
%s file attached." "${grub_cfg}.new" >&2
echo >&2
exit 1
else
# none of the children aborted with error, install the new grub.cfg
mv -f ${grub_cfg}.new ${grub_cfg}