Update power.sh

This commit is contained in:
Kroese 2025-10-21 21:49:05 +02:00 committed by GitHub
parent f42b65f52f
commit 600ae228a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -105,7 +105,9 @@ finish() {
if [ ! -f "$STORAGE/windows.boot" ] && [ -f "$BOOT" ]; then
# Remove CD-ROM ISO after install
if ready; then
touch "$STORAGE/windows.boot"
local file="$STORAGE/windows.boot"
touch "$file"
! setOwner "$file" && error "Failed to set the owner for \"$file\" !"
if [[ "$REMOVE" != [Nn]* ]]; then
rm -f "$BOOT" 2>/dev/null || true
fi