Skip to content

Commit

Permalink
Allow curl redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
erique authored Oct 1, 2024
1 parent c3e8594 commit dbc17b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Replay_Boot/install_arduino_vidor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ mkdir -p "$ARDUINO_PATH/portable"
if [ ! -f "$ARDUINO_PATH/arduino" ]; then
if [[ "$OSTYPE" =~ "linux" ]]; then
echo -ne "${ORANGE}DOWNLOADING... \n${LCYAN}"
curl -f -# http://downloads.arduino.cc/arduino-${ARDUINO_IDE_VERSION}-linux64.tar.xz -o arduino.tar.xz 2>&1
curl -L -f -# http://downloads.arduino.cc/arduino-${ARDUINO_IDE_VERSION}-linux64.tar.xz -o arduino.tar.xz 2>&1
RET=$?
echo -ne "${ORANGE} DOWNLOADED "
if [ $RET -ne 0 ]; then echo -ne "${FAIL_MSG} "; else echo -ne "${PASS_MSG} "; fi
Expand All @@ -57,7 +57,7 @@ if [ ! -f "$ARDUINO_PATH/arduino" ]; then
if [ -f arduino.tar.xz ]; then rm arduino.tar.xz; fi
elif [[ "$OSTYPE" == "msys" ]]; then
echo -ne "${ORANGE}DOWNLOADING... \n${LCYAN}"
curl -f -# http://downloads.arduino.cc/arduino-${ARDUINO_IDE_VERSION}-windows.zip -o arduino.zip 2>&1
curl -L -f -# http://downloads.arduino.cc/arduino-${ARDUINO_IDE_VERSION}-windows.zip -o arduino.zip 2>&1
RET=$?
echo -ne "${ORANGE} DOWNLOADED "
if [ $RET -ne 0 ]; then echo -ne "${FAIL_MSG} "; else echo -ne "${PASS_MSG} "; fi
Expand All @@ -71,7 +71,7 @@ if [ ! -f "$ARDUINO_PATH/arduino" ]; then
if [ -f arduino.zip ]; then rm arduino.zip; fi
elif [[ "$OSTYPE" =~ "darwin" ]]; then
echo -ne "${ORANGE}DOWNLOADING... \n${LCYAN}"
curl -f -# http://downloads.arduino.cc/arduino-${ARDUINO_IDE_VERSION}-macosx.zip -o arduino.zip 2>&1
curl -L -f -# http://downloads.arduino.cc/arduino-${ARDUINO_IDE_VERSION}-macosx.zip -o arduino.zip 2>&1
RET=$?
echo -ne "${ORANGE} DOWNLOADED "
if [ $RET -ne 0 ]; then echo -ne "${FAIL_MSG} "; else echo -ne "${PASS_MSG} "; fi
Expand Down

0 comments on commit dbc17b5

Please sign in to comment.