From 906cdd615c8e5347505cc512c38a6488a0b40476 Mon Sep 17 00:00:00 2001 From: vinceliuice Date: Mon, 28 Oct 2019 14:43:47 +0800 Subject: [PATCH] Fixed openSUSE issues --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 3a51d43..77f5906 100755 --- a/install.sh +++ b/install.sh @@ -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