Fixed openSUSE issues

This commit is contained in:
vinceliuice 2019-10-28 14:43:47 +08:00
parent a17983d9f6
commit 906cdd615c

View file

@ -123,7 +123,11 @@ install() {
elif has_command grub-mkconfig; then
grub-mkconfig -o /boot/grub/grub.cfg
elif has_command grub2-mkconfig; then
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
if [ $(which zypper &>/dev/null) ]; then
grub2-mkconfig -o /boot/grub2/grub.cfg
elif [ $(which dnf &>/dev/null) ]; then
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
fi
fi
# Success message