i3/powermenu: fix rebooting when non-interactive

This commit is contained in:
2020-03-22 12:32:00 +00:00
parent 4b52c21ac9
commit 8e86599372
+1 -1
View File
@@ -12,7 +12,7 @@ case $option in
windows)
windows=`efibootmgr | grep -Po -m1 'Boot\K(\d{4}).*Windows.*' | head -c4`
sudo efibootmgr -n $windows
sudo hibereboot;;
reboot;;
esac
exit 0