Update install.sh

This commit is contained in:
Kroese 2024-01-24 02:11:19 +01:00 committed by GitHub
parent abd6c9056a
commit 7235a2c10e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -72,22 +72,22 @@ replaceXML() {
hasDisk() {
[ -b "${DEVICE:-}" ] && return 1
[ -b "${DEVICE:-}" ] && return 0
if [ -f "$STORAGE/data.img" ] || [ -f "$STORAGE/data.qcow2" ]; then
return 1
return 0
fi
return 0
return 1
}
skipInstall() {
if hasDisk && [ -f "$STORAGE/windows.boot" ]; then
return 1
return 0
fi
return 0
return 1
}
TMP="$STORAGE/tmp"