mirror of
https://github.com/dockur/windows.git
synced 2024-11-25 16:15:42 +00:00
fix: Default to Win10
This commit is contained in:
parent
b038474d13
commit
4dfe6c64bd
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -Eeuo pipefail
|
set -Eeuo pipefail
|
||||||
|
|
||||||
: "${VERSION:="win11x64"}"
|
: "${VERSION:="win10x64"}"
|
||||||
|
|
||||||
BASE="$VERSION.iso"
|
BASE="$VERSION.iso"
|
||||||
[ -f "$STORAGE/$BASE" ] && return 0
|
[ -f "$STORAGE/$BASE" ] && return 0
|
||||||
@ -13,15 +13,14 @@ else
|
|||||||
PROGRESS="--progress=dot:giga"
|
PROGRESS="--progress=dot:giga"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
URL="https://raw.githubusercontent.com/ElliotKillick/Mido/main/Mido.sh"
|
SCRIPT="$STORAGE/mido.sh"
|
||||||
{ wget "$URL" -O "$STORAGE/Mido.sh" -q --no-check-certificate; rc=$?; } || :
|
|
||||||
|
|
||||||
(( rc != 0 )) && error "Failed to download $URL, reason: $rc" && exit 65
|
rm -f "$SCRIPT"
|
||||||
|
cp /run/mido.sh "$SCRIPT"
|
||||||
|
chmod +x "$SCRIPT"
|
||||||
|
|
||||||
chmod +x "$STORAGE/Mido.sh"
|
bash "$SCRIPT" "$VERSION"
|
||||||
rm -f "$STORAGE/$BASE"
|
rm -f "$SCRIPT"
|
||||||
|
|
||||||
bash "$STORAGE/Mido.sh" "$VERSION"
|
|
||||||
|
|
||||||
[ ! -f "$STORAGE/$BASE" ] && error "Failed to download $VERSION.iso!" && exit 66
|
[ ! -f "$STORAGE/$BASE" ] && error "Failed to download $VERSION.iso!" && exit 66
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user