Commit f36a3057 authored by picodotdev's avatar picodotdev

Fix reboot

parent c051c47f
......@@ -840,10 +840,9 @@ function end() {
REBOOT="true"
if [ "$LOG" == "false" ]; then
set +e
KEY="reboot"
for (( i = 15; i >= 1; i-- )); do
read -r -s -n 1 -t 1 -p "Rebooting in $i seconds... Press any key to abort."$'\n' KEY
if [ "$KEY" != 'reboot' ]; then
if [ $? -eq 0 ]; then
REBOOT="false"
break
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment