fix(poweroff): change shutdown command flag
This commit is contained in:
parent
36f7b6d24c
commit
42a7c0e726
Binary file not shown.
Before Width: | Height: | Size: 0 B After Width: | Height: | Size: 74 KiB |
|
@ -59,7 +59,7 @@ run_cmd() {
|
||||||
selected="$(confirm_exit)"
|
selected="$(confirm_exit)"
|
||||||
if [[ "$selected" == "$yes" ]]; then
|
if [[ "$selected" == "$yes" ]]; then
|
||||||
if [[ $1 == '--shutdown' ]]; then
|
if [[ $1 == '--shutdown' ]]; then
|
||||||
sudo shutdown -f now
|
sudo shutdown -P now
|
||||||
elif [[ $1 == '--reboot' ]]; then
|
elif [[ $1 == '--reboot' ]]; then
|
||||||
sudo reboot
|
sudo reboot
|
||||||
elif [[ $1 == '--suspend' ]]; then
|
elif [[ $1 == '--suspend' ]]; then
|
||||||
|
|
Loading…
Reference in New Issue