File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,11 +45,11 @@ function download_cloud_img_if_not_exist () {
45
45
46
46
echo2 " + Downloading cloudimg $cloudimg ..."
47
47
if which aria2c; then
48
- aria2c -o " base/$cloudimg " " ${knowledge[$cloudimg]} " || ! echo2 " Failed to download ubuntu cloudimg" || return $?
48
+ aria2c -o " base/$cloudimg " " ${knowledge[$cloudimg]} " || ! echo2 " Failed to download ubuntu cloudimg" || return $?
49
49
elif which wget; then
50
- wget -O " base/$cloudimg " " ${knowledge[$cloudimg]} " || ! echo2 " Failed to download ubuntu cloudimg" || return $?
50
+ wget -O " base/$cloudimg " " ${knowledge[$cloudimg]} " || ! echo2 " Failed to download ubuntu cloudimg" || return $?
51
51
elif which curl; then
52
- curl -o " base/$cloudimg " " ${knowledge[$cloudimg]} " || ! echo2 " Failed to download ubuntu cloudimg" || return $?
52
+ curl -L -o " base/$cloudimg " " ${knowledge[$cloudimg]} " || ! echo2 " Failed to download ubuntu cloudimg" || return $?
53
53
fi
54
54
}
55
55
You can’t perform that action at this time.
0 commit comments