修复部分 bash 下语法错误

This commit is contained in:
bin456789 2024-04-05 23:21:07 +08:00
parent 10a8699d12
commit d87cc36972
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -505,7 +505,7 @@ find_windows_iso() {
}
get_windows_iso_links() {
label_msdn=$(
get_label_msdn() {
if [ -n "$server" ]; then
case "$version" in
2008 | '2008 r2')
@ -570,9 +570,9 @@ get_windows_iso_links() {
;;
esac
fi
)
}
label_vlsc=$(
get_label_vlsc() {
case "$version" in
10 | 11)
case "$edition" in
@ -580,7 +580,11 @@ get_windows_iso_links() {
esac
;;
esac
)
}
# 部分 bash 不支持 $() 里面嵌套case所以定义成函数
label_msdn=$(get_label_msdn)
label_vlsc=$(get_label_vlsc)
page=$(
if [ "$arch_win" = arm64 ]; then