Skip to content

Commit

Permalink
log retry count
Browse files Browse the repository at this point in the history
Signed-off-by: Hariharan Subramanian <hsubramanian@microsoft.com>
  • Loading branch information
hsubramanianaks committed Jun 30, 2023
1 parent fc0616c commit c9258f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ get_draft_cli_version() {
do
DRAFTCLIVERSION=$(curl -L -s https://api.github.com/repos/Azure/draft/releases/latest | jq -r '.tag_name')
if [ -z "${DRAFTCLIVERSION}" ]; then
log INFO "Unable to get Draft CLI version"
log INFO "Unable to get Draft CLI version, retrying in 5 seconds, retry count $retry"
retry=$((retry++))
if [ $retry -eq 5 ]; then
log ERROR "Unable to get Draft CLI version"
Expand Down

0 comments on commit c9258f2

Please sign in to comment.