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