Skip to content

Instantly share code, notes, and snippets.

@ffalor
Last active September 12, 2023 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ffalor/079b8474fbcaa384fb36496f2cf764a3 to your computer and use it in GitHub Desktop.
Save ffalor/079b8474fbcaa384fb36496f2cf764a3 to your computer and use it in GitHub Desktop.
if ! _resp="$(curl --retry 15 --retry-delay 10 -sf -H "Authorization: Bearer ${SSM_CS_AUTH_TOKEN}" -H "User-Agent: $userAgent" "$URL")" ; then
errcho "Failed getting url (exit status $?)..."
"$@"
echo "${_resp}"
echo _resp
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment