mirror of
https://github.com/dockur/windows.git
synced 2026-08-03 12:37:20 +01:00
Update install.sh
This commit is contained in:
+22
-8
@@ -39,16 +39,30 @@ startWindows() {
|
|||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
if ! extractImage "$ISO" "$dir" "$VERSION"; then
|
local detect_rc=0
|
||||||
removeIso "$ISO" && return 74
|
detectIsoImage "$ISO" || detect_rc=$?
|
||||||
fi
|
|
||||||
|
|
||||||
extracted=1
|
case "$detect_rc" in
|
||||||
|
|
||||||
if ! detectImage "$dir"; then
|
0 ) ;;
|
||||||
abortInstall "$dir" "$ISO" "$boot" || return 76
|
1 )
|
||||||
return 0
|
|
||||||
fi
|
if ! extractImage "$ISO" "$dir" "$VERSION"; then
|
||||||
|
removeIso "$ISO" && return 74
|
||||||
|
fi
|
||||||
|
|
||||||
|
extracted=1
|
||||||
|
|
||||||
|
if ! detectImage "$dir"; then
|
||||||
|
abortInstall "$dir" "$ISO" "$boot" || return 76
|
||||||
|
return 0
|
||||||
|
fi ;;
|
||||||
|
|
||||||
|
* )
|
||||||
|
abortInstall "$dir" "$ISO" "$boot" || return 76
|
||||||
|
return 0 ;;
|
||||||
|
|
||||||
|
esac
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user