Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed Dec 17, 2022
1 parent 1b87751 commit cc82369
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .ci/awesome_bot.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
#!/bin/bash

if type awesome_bot >/dev/null 2>&1; then
AWESOME_BOT_EXEC=awesome_bot
else
AWESOME_BOT_EXEC=bundle exec awesome_bot
fi

awesome_bot_with_retry() {
local attempt_max=5
local -i attempt_num=1
until awesome_bot "$@"; do
until ${AWESOME_BOT_EXEC} "$@"; do
if ((attempt_num == attempt_max)); then
exit 1
fi
Expand Down

0 comments on commit cc82369

Please sign in to comment.