fix: Check file permissions

This commit is contained in:
Kroese 2024-04-22 15:34:02 +02:00 committed by GitHub
parent 9c07be17b7
commit 12262f1e7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1196,9 +1196,7 @@ if ! updateImage "$ISO" "$DIR" "$XML"; then
return 0
fi
if [ -w "$ISO" ]; then
rm -f "$ISO"
else
if ! rm -f "$ISO" 2> /dev/null; then
BASE="windows.iso"
ISO="$STORAGE/$BASE"
rm -f "$ISO"