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 ))
|
elif (( $stat == 3 ))
|
||||||
then
|
then
|
||||||
printf 'Ignoring missing signatures...\n'
|
printf 'Ignoring missing signatures...\n'
|
||||||
else
|
elif (( $stat == 0 ))
|
||||||
printf 'Something unknown happened!\n'
|
then
|
||||||
exit 99
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Then remove the signatures.
|
# Then remove the signatures.
|
||||||
find /boot -name '*.sig' -exec rm -- '{}' +
|
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!"
|
echo "GRUB2 unsigned. WARNING: If you want to deactivate GRUB2's signature feature, change the check_signatures variable in the headers file!"
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
else
|
||||||
|
printf 'Something unknown happened!\n'
|
||||||
|
exit 99
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
@ -87,11 +87,11 @@ fi
|
|||||||
if (( ${#error_files[@]} > 0 ))
|
if (( ${#error_files[@]} > 0 ))
|
||||||
then
|
then
|
||||||
exit 1
|
exit 1
|
||||||
elif (( ${#missing_files[@]} > 0 ))
|
|
||||||
then
|
|
||||||
exit 3
|
|
||||||
else
|
|
||||||
exit 0
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 99
|
if (( ${#missing_files[@]} > 0 ))
|
||||||
|
then
|
||||||
|
exit 3
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user