Skip to content

Commit

Permalink
install: kraken: Add curl retry and timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Sep 27, 2024
1 parent f952bce commit 37f8817
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions install/kraken/set_default_extensions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
COCKPIT_RELEASE_URL="https://api.github.com/repos/bluerobotics/cockpit/releases/latest"
MAJOR_TOM_RELEASE_URL="https://blueos.cloud/major_tom/install"

alias curl="curl --retry 6 --max-time 15 --retry-all-errors --retry-delay 20 --connect-timeout 60"

response=$(curl -fsSL $COCKPIT_RELEASE_URL)

if [[ $response =~ \"tag_name\":\ *\"([^\"]+)\" ]]; then
Expand Down

0 comments on commit 37f8817

Please sign in to comment.