Skip to content

Commit fccdae9

Browse files
committed
.add curl -L
1 parent dbb36f0 commit fccdae9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cron-callback.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ function download_cloud_img_if_not_exist () {
4545

4646
echo2 "+ Downloading cloudimg $cloudimg..."
4747
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 $?
4949
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 $?
5151
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 $?
5353
fi
5454
}
5555

0 commit comments

Comments
 (0)