mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2024-12-25 19:05:35 +01:00
update
This commit is contained in:
parent
8f4becc1a5
commit
aa3e2b3c04
12
install.sh
12
install.sh
@ -391,11 +391,9 @@ remove() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Show terminal user interface for better use
|
# Show terminal user interface for better use
|
||||||
if [[ $# -lt 1 ]] && [[ -x /usr/bin/dialog ]] ; then
|
if [[ $# -eq 0 ]]; then
|
||||||
install_dialog && run_dialog
|
if [[ ! -x /usr/bin/dialog ]]; then
|
||||||
fi
|
if [[ $UID -ne $ROOT_UID ]]; then
|
||||||
|
|
||||||
if [[ $# -lt 1 ]] && [[ $UID -ne $ROOT_UID ]] && [[ ! -x /usr/bin/dialog ]] ; then
|
|
||||||
#Check if password is cached (if cache timestamp not expired yet)
|
#Check if password is cached (if cache timestamp not expired yet)
|
||||||
sudo -n true 2> /dev/null && echo
|
sudo -n true 2> /dev/null && echo
|
||||||
|
|
||||||
@ -419,6 +417,10 @@ if [[ $# -lt 1 ]] && [[ $UID -ne $ROOT_UID ]] && [[ ! -x /usr/bin/dialog ]] ; t
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
install_dialog
|
||||||
|
fi
|
||||||
|
run_dialog
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while [[ $# -gt 0 ]]; do
|
while [[ $# -gt 0 ]]; do
|
||||||
|
Loading…
Reference in New Issue
Block a user