mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2024-12-25 07:45:34 +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
|
||||
if [[ $# -lt 1 ]] && [[ -x /usr/bin/dialog ]] ; then
|
||||
install_dialog && run_dialog
|
||||
fi
|
||||
|
||||
if [[ $# -lt 1 ]] && [[ $UID -ne $ROOT_UID ]] && [[ ! -x /usr/bin/dialog ]] ; then
|
||||
if [[ $# -eq 0 ]]; then
|
||||
if [[ ! -x /usr/bin/dialog ]]; then
|
||||
if [[ $UID -ne $ROOT_UID ]]; then
|
||||
#Check if password is cached (if cache timestamp not expired yet)
|
||||
sudo -n true 2> /dev/null && echo
|
||||
|
||||
@ -420,6 +418,10 @@ if [[ $# -lt 1 ]] && [[ $UID -ne $ROOT_UID ]] && [[ ! -x /usr/bin/dialog ]] ; t
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
install_dialog
|
||||
fi
|
||||
run_dialog
|
||||
fi
|
||||
|
||||
while [[ $# -gt 0 ]]; do
|
||||
PROG_ARGS+=("${1}")
|
||||
|
Loading…
Reference in New Issue
Block a user