mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 03:15:49 +00:00
Update install.sh
This commit is contained in:
parent
abd6c9056a
commit
7235a2c10e
1 changed files with 5 additions and 5 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue