mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2026-06-07 03:43:58 +08:00
update
This commit is contained in:
+11
-12
@@ -191,20 +191,19 @@ if [[ $# -lt 1 ]] && [[ $UID -eq $ROOT_UID ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $# -lt 1 ]] && [[ $UID -ne $ROOT_UID ]]; then
|
if [[ $# -lt 1 ]] && [[ $UID -ne $ROOT_UID ]]; then
|
||||||
|
# Error message
|
||||||
|
prompt -e "\n [ Error!] -> Run me as root "
|
||||||
|
|
||||||
# Error message
|
# persisted execution of the script as root
|
||||||
prompt -e "\n [ Error!] -> Run me as root "
|
read -p "[ trusted ] specify the root password : " -t${MAX_DELAY} -s
|
||||||
|
[[ -n "$REPLY" ]]&& {
|
||||||
|
sudo -S <<< $REPLY $0
|
||||||
|
}|| {
|
||||||
|
prompt "\n Operation canceled Bye"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
# persisted execution of the script as root
|
run_dialog
|
||||||
read -p "[ trusted ] specify the root password : " -t${MAX_DELAY} -s
|
|
||||||
[[ -n "$REPLY" ]]&& {
|
|
||||||
sudo -S <<< $REPLY $0
|
|
||||||
}|| {
|
|
||||||
prompt "\n Operation canceled Bye"
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
run_dialog
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while [[ $# -ge 1 ]]; do
|
while [[ $# -ge 1 ]]; do
|
||||||
|
|||||||
Reference in New Issue
Block a user