commit
c8104a37e9
1 changed files with 4 additions and 4 deletions
|
@ -127,6 +127,7 @@ install() {
|
||||||
|
|
||||||
# Success message
|
# Success message
|
||||||
prompt -s "\n All done!"
|
prompt -s "\n All done!"
|
||||||
|
prompt -w "* At the next restart of your computer you can admire your new Grub theme named << $theme >> "
|
||||||
|
|
||||||
else
|
else
|
||||||
# Error message
|
# Error message
|
||||||
|
@ -165,7 +166,7 @@ run_dialog() {
|
||||||
|
|
||||||
install_dialog() {
|
install_dialog() {
|
||||||
if [ ! "$(which dialog 2> /dev/null)" ]; then
|
if [ ! "$(which dialog 2> /dev/null)" ]; then
|
||||||
prompt -i "\n 'dialog' needs to be installed for this shell "
|
prompt -i "\n 'dialog' needs to be installed for this shell"
|
||||||
if has_command zypper; then
|
if has_command zypper; then
|
||||||
|
|
||||||
sudo zypper in dialog
|
sudo zypper in dialog
|
||||||
|
@ -197,13 +198,12 @@ if [[ $# -lt 1 ]] && [[ $UID -ne $ROOT_UID ]]; then
|
||||||
# persisted execution of the script as root
|
# persisted execution of the script as root
|
||||||
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" ]]&& {
|
||||||
sudo -S <<< $REPLY $0
|
exec sudo -S <<< $REPLY $0
|
||||||
}|| {
|
}|| {
|
||||||
prompt "\n Operation canceled Bye"
|
prompt "\n Operation canceled Bye"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
run_dialog
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while [[ $# -ge 1 ]]; do
|
while [[ $# -ge 1 ]]; do
|
||||||
|
|
Loading…
Reference in a new issue