mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2024-11-05 14:56:14 +01:00
Update install.sh
This commit is contained in:
parent
c991e3a3a7
commit
8d2f2e17b8
16
install.sh
16
install.sh
@ -137,15 +137,15 @@ install() {
|
|||||||
|
|
||||||
# Backup grub config
|
# Backup grub config
|
||||||
if [[ -f /etc/default/grub.bak ]]; then
|
if [[ -f /etc/default/grub.bak ]]; then
|
||||||
prompt -w "\n File '/etc/default/grub.bak' already exists. Remove it? [y/N]"
|
prompt -w "\n File '/etc/default/grub.bak' already exists!"
|
||||||
read choice
|
# read choice
|
||||||
if [[ "$choice" = 'y' ]]; then
|
# if [[ "$choice" = 'y' ]]; then
|
||||||
cp -a /etc/default/grub /etc/default/grub.bak
|
# cp -a /etc/default/grub /etc/default/grub.bak
|
||||||
else
|
# else
|
||||||
prompt -s "Skipping to save a backup configuration in '/etc/default/grub.bak'"
|
# prompt -s "Skipping to save a backup configuration in '/etc/default/grub.bak'"
|
||||||
fi
|
# fi
|
||||||
else
|
else
|
||||||
cp -a /etc/default/grub /etc/default/grub.bak
|
cp -an /etc/default/grub /etc/default/grub.bak
|
||||||
fi
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user