Update power.sh

This commit is contained in:
Kroese 2024-05-05 21:00:49 +02:00 committed by GitHub
parent c777beb001
commit 7a72e2f546
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -83,9 +83,9 @@ finish() {
if [ ! -f "$STORAGE/windows.boot" ] && [ -f "$BOOT" ]; then if [ ! -f "$STORAGE/windows.boot" ] && [ -f "$BOOT" ]; then
# Remove CD-ROM ISO after install # Remove CD-ROM ISO after install
if ready && [[ "$REMOVE" != [Nn]* ]]; then if ready; then
rm -f "$BOOT" 2>/dev/null || true
touch "$STORAGE/windows.boot" touch "$STORAGE/windows.boot"
[[ "$REMOVE" != [Nn]* ]] && rm -f "$BOOT" 2>/dev/null || true
fi fi
fi fi