1
0
espelhamento de https://github.com/Bandie/grub2-signing-extension.git sincronizado 2024-04-01 15:51:26 +00:00

Fixing exit code error

Esse commit está contido em:
2018-04-08 14:46:43 +02:00
commit e9b48b71a8
2 arquivos alterados com 14 adições e 10 exclusões

Ver arquivo

@@ -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

Ver arquivo

@@ -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