fixed
This commit is contained in:
@ -16,14 +16,14 @@ ask "$opt1" "$first_prompt"
|
|||||||
case $answer in
|
case $answer in
|
||||||
"Restart")
|
"Restart")
|
||||||
ask "$opt2" "Are you sure?"
|
ask "$opt2" "Are you sure?"
|
||||||
if [[ $answer == "Sim" ]]; then
|
if [[ $answer == "Yes" ]]; then
|
||||||
systemctl reboot
|
systemctl reboot
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
"Shutdown")
|
"Shutdown")
|
||||||
ask "$opt2" "Are you sure?"
|
ask "$opt2" "Are you sure?"
|
||||||
if [[ $answer == "Sim" ]]; then
|
if [[ $answer == "Yes" ]]; then
|
||||||
systemctl poweroff
|
systemctl poweroff
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
Reference in New Issue
Block a user