mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2024-11-16 21:05:39 +01:00
Fix --boot not saving through authentication
This commit is contained in:
parent
091dc940a9
commit
23b756c1eb
@ -195,8 +195,12 @@ install() {
|
|||||||
read -p "[ Trusted ] Specify the root password : " -t${MAX_DELAY} -s
|
read -p "[ Trusted ] Specify the root password : " -t${MAX_DELAY} -s
|
||||||
[[ -n "$REPLY" ]] && {
|
[[ -n "$REPLY" ]] && {
|
||||||
if [[ -n "${theme}" && -n "${screen}" ]]; then
|
if [[ -n "${theme}" && -n "${screen}" ]]; then
|
||||||
|
if [[ ${THEME_DIR} == '/boot/grub/themes' ]]; then
|
||||||
|
sudo -S <<< $REPLY $0 --boot --${theme} --${icon} --${screen} --${custom_background}
|
||||||
|
else
|
||||||
sudo -S <<< $REPLY $0 --${theme} --${icon} --${screen} --${custom_background}
|
sudo -S <<< $REPLY $0 --${theme} --${icon} --${screen} --${custom_background}
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
} || {
|
} || {
|
||||||
operation_canceled
|
operation_canceled
|
||||||
}
|
}
|
||||||
@ -342,8 +346,12 @@ remove() {
|
|||||||
read -p "[ trusted ] specify the root password : " -t${MAX_DELAY} -s
|
read -p "[ trusted ] specify the root password : " -t${MAX_DELAY} -s
|
||||||
[[ -n "$REPLY" ]] && {
|
[[ -n "$REPLY" ]] && {
|
||||||
if [[ -n "${theme}" ]]; then
|
if [[ -n "${theme}" ]]; then
|
||||||
|
if [[ ${THEME_DIR} == '/boot/grub/themes' ]]; then
|
||||||
|
sudo -S <<< $REPLY $0 --remove --boot --${theme}
|
||||||
|
else
|
||||||
sudo -S <<< $REPLY $0 --remove --${theme}
|
sudo -S <<< $REPLY $0 --remove --${theme}
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
} || {
|
} || {
|
||||||
operation_canceled
|
operation_canceled
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user