Skip to content

Commit 2d74741

Browse files
committed
fix
1 parent e4d45a8 commit 2d74741

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/push-to-arduino.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ if [ $LIBS_HAS_ASSET == "0" ] && [ $AR_HAS_COMMIT == "0" ]; then
5353

5454
# Download the file
5555
remote_file="remote-$LIBS_ZIP_FILENAME"
56-
curl -s -o "$remote_file" "$IDF_LIBS_DL_URL"
56+
curl -s -L -o "$remote_file" "$IDF_LIBS_DL_URL"
5757

5858
# Check if the download was successful
5959
if [ $? -ne 0 ]; then
6060
echo "Error downloading file from $IDF_LIBS_DL_URL. Retrying..."
6161
rm -f "$remote_file"
62-
curl -s -o "$remote_file" "$IDF_LIBS_DL_URL"
62+
curl -s -L -o "$remote_file" "$IDF_LIBS_DL_URL"
6363
if [ $? -ne 0 ]; then
6464
echo "Error downloading file from $IDF_LIBS_DL_URL"
6565
exit 1
@@ -78,7 +78,7 @@ if [ $LIBS_HAS_ASSET == "0" ] && [ $AR_HAS_COMMIT == "0" ]; then
7878
echo "Checksum mismatch for downloaded file. Retrying..."
7979
rm "$remote_file"
8080

81-
curl -s -o "$remote_file" "$IDF_LIBS_DL_URL"
81+
curl -s -L -o "$remote_file" "$IDF_LIBS_DL_URL"
8282
if [ $? -ne 0 ]; then
8383
echo "Error downloading file from $IDF_LIBS_DL_URL"
8484
exit 1

0 commit comments

Comments
 (0)