mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 11:25:49 +00:00
Update install.sh
This commit is contained in:
parent
7beac0d11e
commit
d718daf4e6
1 changed files with 10 additions and 9 deletions
|
|
@ -108,15 +108,16 @@ if [ -f "$STORAGE/$BASE" ]; then
|
||||||
|
|
||||||
if [[ "$MAGIC" == "16" ]]; then
|
if [[ "$MAGIC" == "16" ]]; then
|
||||||
|
|
||||||
FOUND="N"
|
if [[ "$MANUAL" = [Yy1]* ]]; then
|
||||||
[[ "$MANUAL" = [Yy1]* ]] && FOUND="Y"
|
rm -rf "$TMP"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$FOUND" == "N" ]]; then
|
FOUND="N"
|
||||||
if [ -f "$STORAGE/data.img" ] || [ -f "$STORAGE/data.qcow2" ]; then
|
if [ -f "$STORAGE/data.img" ] || [ -f "$STORAGE/data.qcow2" ]; then
|
||||||
FOUND="Y"
|
FOUND="Y"
|
||||||
else
|
else
|
||||||
[ -b "${DEVICE:-}" ] && FOUND="Y"
|
[ -b "${DEVICE:-}" ] && FOUND="Y"
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$FOUND" == "Y" ]]; then
|
if [[ "$FOUND" == "Y" ]]; then
|
||||||
|
|
@ -128,7 +129,7 @@ if [ -f "$STORAGE/$BASE" ]; then
|
||||||
|
|
||||||
EXTERNAL="Y"
|
EXTERNAL="Y"
|
||||||
CUSTOM="$BASE"
|
CUSTOM="$BASE"
|
||||||
MSG="ISO file '$BASE' needs to be prepared..."
|
MSG="ISO file needs to be prepared..."
|
||||||
info "$MSG" && html "$MSG"
|
info "$MSG" && html "$MSG"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue