Skip to content

Commit

Permalink
install: Add retry in curl command
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed May 24, 2023
1 parent bf9a3c3 commit 4d577c4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions install/boards/bcm_27xx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ GITHUB_REPOSITORY=${GITHUB_REPOSITORY:-bluerobotics/blueos-docker}
REMOTE="${REMOTE:-https://raw.githubusercontent.com/${GITHUB_REPOSITORY}}"
ROOT="$REMOTE/$VERSION"
CMDLINE_FILE=/boot/cmdline.txt
alias curl="curl --retry 6 --max-time 15 --retry-all-errors"

# Download, compile, and install spi0 mosi-only device tree overlay for
# neopixel LED on navigator board
Expand Down
1 change: 1 addition & 0 deletions install/boards/configure_board.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ GITHUB_REPOSITORY=${GITHUB_REPOSITORY:-bluerobotics/blueos-docker}
REMOTE="${REMOTE:-https://raw.githubusercontent.com/${GITHUB_REPOSITORY}}"
ROOT="$REMOTE/$VERSION"
CONFIGURE_BOARD_PATH="$ROOT/install/boards"
alias curl="curl --retry 6 --max-time 15 --retry-all-errors"

function board_not_detected {
echo "Hardware not identified in $1, please report back the following line:"
Expand Down
1 change: 1 addition & 0 deletions install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ VERSION="${VERSION:-master}"
GITHUB_REPOSITORY=${GITHUB_REPOSITORY:-bluerobotics/blueos-docker}
REMOTE="${REMOTE:-https://raw.githubusercontent.com/${GITHUB_REPOSITORY}}"
ROOT="$REMOTE/$VERSION"
alias curl="curl --retry 6 --max-time 15 --retry-all-errors"

# Additional options
DO_BOARD_CONFIG=1 # default to do the board config
Expand Down
1 change: 1 addition & 0 deletions install/network/avahi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ GITHUB_REPOSITORY=${GITHUB_REPOSITORY:-bluerobotics/blueos-docker}
REMOTE="${REMOTE:-https://raw.githubusercontent.com/${GITHUB_REPOSITORY}}"
REMOTE="$REMOTE/$VERSION"
CONFIGURE_NETWORK_PATH="$REMOTE/install/network"
alias curl="curl --retry 6 --max-time 15 --retry-all-errors"

# Exit if something goes wrong
set -e
Expand Down

0 comments on commit 4d577c4

Please sign in to comment.