Merge branch 'master' of github.com:vinceliuice/grub2-themes

This commit is contained in:
vinceliuice 2023-07-21 22:56:08 +08:00
commit 1358b497d9

View file

@ -136,9 +136,17 @@ install() {
prompt -i "\n Setting ${theme} as default..." prompt -i "\n Setting ${theme} as default..."
# Backup grub config # Backup grub config
if [[ ! -f "/etc/default/grub.bak" ]]; then if [[ -f /etc/default/grub.bak ]]; then
cp -an /etc/default/grub /etc/default/grub.bak echo -ne "\n${b_CWAR}File '/etc/default/grub.bak' already exists. Remove it? [yN]${CDEF}"
fi read choice
if [ "$choice" = 'y' ]; then
cp -a /etc/default/grub /etc/default/grub.bak
else
echo -ne "\n${b_CWAR}Skipping to save a backup configuration in '/etc/default/grub.bak'${CDEF}"
fi
else
cp -a /etc/default/grub /etc/default/grub.bak
fi
# Fedora workaround to fix the missing unicode.pf2 file (tested on fedora 34): https://bugzilla.redhat.com/show_bug.cgi?id=1739762 # Fedora workaround to fix the missing unicode.pf2 file (tested on fedora 34): https://bugzilla.redhat.com/show_bug.cgi?id=1739762
# This occurs when we add a theme on grub2 with Fedora. # This occurs when we add a theme on grub2 with Fedora.