Update install.sh
This commit is contained in:
parent
8cd0ea9b4a
commit
8383f6b4f8
1 changed files with 3 additions and 3 deletions
|
@ -209,7 +209,7 @@ install() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Update grub config
|
# Update grub config
|
||||||
prompt -i "\n Updating grub config... \n"
|
prompt -i "\n Updating grub config..."
|
||||||
updating_grub
|
updating_grub
|
||||||
prompt -w "\n * At the next restart of your computer you will see your new Grub theme: '$theme' "
|
prompt -w "\n * At the next restart of your computer you will see your new Grub theme: '$theme' "
|
||||||
|
|
||||||
|
@ -337,11 +337,11 @@ updating_grub() {
|
||||||
grub2-mkconfig -o /boot/grub2/grub.cfg
|
grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||||
elif has_command dnf; then
|
elif has_command dnf; then
|
||||||
if [[ -f /boot/efi/EFI/fedora/grub.cfg ]] && (( $(cat /etc/fedora-release | awk '{print $3}') < 34 )); then
|
if [[ -f /boot/efi/EFI/fedora/grub.cfg ]] && (( $(cat /etc/fedora-release | awk '{print $3}') < 34 )); then
|
||||||
prompt -i "\n Find config file on /boot/efi/EFI/fedora/grub.cfg ...\n"
|
prompt -s "\n Find config file on /boot/efi/EFI/fedora/grub.cfg ...\n"
|
||||||
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
|
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
|
||||||
fi
|
fi
|
||||||
if [[ -f /boot/grub2/grub.cfg ]]; then
|
if [[ -f /boot/grub2/grub.cfg ]]; then
|
||||||
prompt -i "\n Find config file on /boot/grub2/grub.cfg ...\n"
|
prompt -s "\n Find config file on /boot/grub2/grub.cfg ...\n"
|
||||||
grub2-mkconfig -o /boot/grub2/grub.cfg
|
grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue