Update power.sh

This commit is contained in:
Kroese 2024-01-24 02:32:43 +01:00 committed by GitHub
parent 8a940b6e33
commit 3bf41d9172
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -121,8 +121,10 @@ _graceful_shutdown() {
info "Cannot send ACPI signal during Windows setup, aborting..." info "Cannot send ACPI signal during Windows setup, aborting..."
finish "$code" && return "$code" finish "$code" && return "$code"
else else
[ -n "$BASE" ] && rm -f "$STORAGE/$BASE" if [ -f "$STORAGE/$BASE" ]; then
touch "$STORAGE/windows.boot" rm -f "$STORAGE/$BASE"
touch "$STORAGE/windows.boot"
fi
fi fi
fi fi