Skip to content

Commit 78ba069

Browse files
committed
windows: 添加 win8 链接
1 parent 9e0968e commit 78ba069

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

reinstall.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ is_have_arm_version() {
859859

860860
find_windows_iso() {
861861
parse_windows_image_name || error_and_exit "--image-name wrong: $image_name"
862-
if ! [ "$version" = 8.1 ] && [ -z "$edition" ]; then
862+
if ! { [ "$version" = 8 ] || [ "$version" = 8.1 ]; } && [ -z "$edition" ]; then
863863
error_and_exit "Edition is not set."
864864
fi
865865

@@ -908,7 +908,8 @@ get_windows_iso_link() {
908908
x86) echo _ ;;
909909
esac
910910
;;
911-
homebasic | homepremium | business | ultimate) echo _ ;;
911+
homebasic | homepremium | ultimate) echo _ ;;
912+
business | enterprise) "$edition" ;;
912913
esac
913914
;;
914915
7)
@@ -927,10 +928,9 @@ get_windows_iso_link() {
927928
professional | enterprise | ultimate) echo "$edition" ;;
928929
esac
929930
;;
930-
# massgrave 不提供 windows 8 下载
931-
8.1)
931+
8 | 8.1)
932932
case "$edition" in
933-
'') echo _ ;; # windows 8.1 core
933+
'') echo _ ;; # windows 8.x core
934934
pro | enterprise) echo "$edition" ;;
935935
esac
936936
;;
@@ -1025,7 +1025,7 @@ get_windows_iso_link() {
10251025
echo server
10261026
else
10271027
case "$version" in
1028-
vista | 7 | 8.1 | 10 | 11)
1028+
vista | 7 | 8 | 8.1 | 10 | 11)
10291029
echo "$version"
10301030
;;
10311031
esac

0 commit comments

Comments
 (0)