# 定义字符串数组
$array = @("docker-amd64-20.10.15.tgz", "docker-compose-linux-x86_64-v2.18.0", "rke_linux-amd64", "kubectl-1.20.4-amd64", "mysql-8.0.27-linux-glibc2.17-x86_64-minimal.zip")

# 使用mc.exe下载文件
# 定义下载路径


# 定义mc的前缀
$mc_prefix = "uav-demo/cmlc-installation/downloadfile/amd/"

# 函数设置mc alias
C:\Users\86188\Downloads\mc.exe alias set uav-demo https://oss.demo.uavcmlc.com cmii B#923fC7mk

# 循环遍历数组
foreach ($item in $array) {
    # 拼接下载命令
    Write-Output "start to download $mc_prefix$item"

    C:\Users\86188\Downloads\mc.exe get $mc_prefix$item C:\Users\86188\Documents\cmii\

    Write-Output ""
}
