update
This commit is contained in:
23
998-常用脚本/a-Agent-WDD运行/a-AgentWdd-基础依赖.ps1
Normal file
23
998-常用脚本/a-Agent-WDD运行/a-AgentWdd-基础依赖.ps1
Normal file
@@ -0,0 +1,23 @@
|
||||
# 定义字符串数组
|
||||
$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_path = "C:\Users\86188\Downloads\mc.exe"
|
||||
|
||||
# 定义mc的前缀
|
||||
$mc_prefix = "uav-demo/cmlc-installation/downloadfile/amd/"
|
||||
|
||||
|
||||
# 函数设置mc alias
|
||||
Start-Process -FilePath $mc_path alias set uav-demo https://oss.demo.uavcmlc.com cmii B#923fC7mk
|
||||
|
||||
# 循环遍历数组
|
||||
foreach ($item in $array) {
|
||||
# 拼接下载命令
|
||||
Write-Output "start to download $mc_prefix$item"
|
||||
|
||||
$mc_path get $mc_prefix$item C:\Users\86188\Documents\cmii\
|
||||
|
||||
Write-Output ""
|
||||
}
|
||||
Reference in New Issue
Block a user