mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2024-11-05 16:26:13 +01:00
Update install.sh
This commit is contained in:
parent
1358b497d9
commit
bf840ebdb7
10
install.sh
10
install.sh
@ -137,12 +137,12 @@ install() {
|
|||||||
|
|
||||||
# Backup grub config
|
# Backup grub config
|
||||||
if [[ -f /etc/default/grub.bak ]]; then
|
if [[ -f /etc/default/grub.bak ]]; then
|
||||||
echo -ne "\n${b_CWAR}File '/etc/default/grub.bak' already exists. Remove it? [yN]${CDEF}"
|
prompt -w "\n File '/etc/default/grub.bak' already exists. Remove it? [y/N]"
|
||||||
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
|
||||||
echo -ne "\n${b_CWAR}Skipping to save a backup configuration in '/etc/default/grub.bak'${CDEF}"
|
prompt -w "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 -a /etc/default/grub /etc/default/grub.bak
|
||||||
@ -217,9 +217,9 @@ install() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Update grub config
|
# Update grub config
|
||||||
prompt -i "\n Updating grub config..."
|
prompt -i "\n Updating grub config... \n"
|
||||||
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' \n"
|
||||||
|
|
||||||
#Check if password is cached (if cache timestamp has not expired yet)
|
#Check if password is cached (if cache timestamp has not expired yet)
|
||||||
elif sudo -n true 2> /dev/null && echo; then
|
elif sudo -n true 2> /dev/null && echo; then
|
||||||
|
Loading…
Reference in New Issue
Block a user