mirror of
https://github.com/dockur/windows.git
synced 2026-07-28 21:53:34 +07:00
Update install.sh
This commit is contained in:
+8
-10
@@ -650,6 +650,11 @@ extractImage() {
|
||||
local desc="local ISO"
|
||||
local file size
|
||||
|
||||
if enabled "${ISO_TEST:-}" && ! enabled "${UNPACK:-}"; then
|
||||
extractModernImage "$iso" "$dir" "$version"
|
||||
return $?
|
||||
fi
|
||||
|
||||
if [ -z "$CUSTOM" ]; then
|
||||
desc="downloaded ISO"
|
||||
if [[ "$version" != "http"* ]]; then
|
||||
@@ -1376,16 +1381,9 @@ fi
|
||||
|
||||
DIR="$TMP/unpack"
|
||||
|
||||
if enabled "${ISO_TEST:-}"; then
|
||||
if ! extractModernImage "$ISO" "$DIR" "$VERSION"; then
|
||||
rm -f "$ISO" 2> /dev/null || true
|
||||
exit 62
|
||||
fi
|
||||
else
|
||||
if ! extractImage "$ISO" "$DIR" "$VERSION"; then
|
||||
rm -f "$ISO" 2> /dev/null || true
|
||||
exit 62
|
||||
fi
|
||||
if ! extractImage "$ISO" "$DIR" "$VERSION"; then
|
||||
rm -f "$ISO" 2> /dev/null || true
|
||||
exit 62
|
||||
fi
|
||||
|
||||
if ! detectImage "$DIR" "$VERSION"; then
|
||||
|
||||
Reference in New Issue
Block a user