mirror of
https://github.com/Bandie/grub2-signing-extension.git
synced 2024-04-01 15:51:26 +00:00
Fixing exit code error
This commit is contained in:
parent
ed07f8de05
commit
e9b48b71a8
@ -18,13 +18,17 @@ then
|
||||
elif (( $stat == 3 ))
|
||||
then
|
||||
printf 'Ignoring missing signatures...\n'
|
||||
elif (( $stat == 0 ))
|
||||
then
|
||||
# Then remove the signatures.
|
||||
find /boot -name '*.sig' -exec rm -- '{}' +
|
||||
|
||||
echo "GRUB2 unsigned. WARNING: If you want to deactivate GRUB2's signature feature, change the check_signatures variable in the headers file!"
|
||||
exit 0
|
||||
|
||||
else
|
||||
printf 'Something unknown happened!\n'
|
||||
exit 99
|
||||
fi
|
||||
|
||||
# Then remove the signatures.
|
||||
find /boot -name '*.sig' -exec rm -- '{}' +
|
||||
|
||||
echo "GRUB2 unsigned. WARNING: If you want to deactivate GRUB2's signature feature, change the check_signatures variable in the headers file!"
|
||||
exit 0
|
||||
|
@ -87,11 +87,11 @@ fi
|
||||
if (( ${#error_files[@]} > 0 ))
|
||||
then
|
||||
exit 1
|
||||
elif (( ${#missing_files[@]} > 0 ))
|
||||
then
|
||||
exit 3
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
|
||||
exit 99
|
||||
if (( ${#missing_files[@]} > 0 ))
|
||||
then
|
||||
exit 3
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user