mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 23:02:40 +00:00
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:
1 parent
15aee573d2
commit
3c3e96d044
1 file changed
+1
@@ -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
|
and /etc/grub.d/* files or please file a bug report with
|
||||||
%s file attached." "${grub_cfg}.new" >&2
|
%s file attached." "${grub_cfg}.new" >&2
|
||||||
echo >&2
|
echo >&2
|
||||||
|
exit 1
|
||||||
else
|
else
|
||||||
# none of the children aborted with error, install the new grub.cfg
|
# none of the children aborted with error, install the new grub.cfg
|
||||||
mv -f ${grub_cfg}.new ${grub_cfg}
|
mv -f ${grub_cfg}.new ${grub_cfg}
|
||||||
|
|||||||
Reference in new issue
Block a user