mirror of
https://github.com/dockur/windows.git
synced 2025-10-29 12:15:50 +00:00
Update install.sh
This commit is contained in:
parent
fdf0c72340
commit
6fa56e5d67
1 changed files with 18 additions and 3 deletions
|
|
@ -671,9 +671,24 @@ detectVersion() {
|
||||||
arch=$(sed -n "/$tag/{s/.*<$tag>\(.*\)<\/$tag>.*/\1/;p}" <<< "$xml")
|
arch=$(sed -n "/$tag/{s/.*<$tag>\(.*\)<\/$tag>.*/\1/;p}" <<< "$xml")
|
||||||
|
|
||||||
case "${arch,,}" in
|
case "${arch,,}" in
|
||||||
"0" ) platform="x86" ;;
|
"0" )
|
||||||
"9" ) platform="x64" ;;
|
platform="x86"
|
||||||
"12" ) platform="arm64" ;;
|
if [[ "${PLATFORM,,}" != "x64" ]]; then
|
||||||
|
error "You cannot boot $platform images on a $PLATFORM cpu!" && exit 67
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
"9" )
|
||||||
|
platform="x64"
|
||||||
|
if [[ "${PLATFORM,,}" != "x64" ]]; then
|
||||||
|
error "You cannot boot $platform images on a $PLATFORM cpu!" && exit 67
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
"12" )
|
||||||
|
platform="arm64"
|
||||||
|
if [[ "${PLATFORM,,}" != "arm64" ]]; then
|
||||||
|
error "You cannot boot ${platform^^} images on a $PLATFORM cpu!" && exit 67
|
||||||
|
fi
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
id=$(selectVersion "DISPLAYNAME" "$xml" "$platform")
|
id=$(selectVersion "DISPLAYNAME" "$xml" "$platform")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue