Skip to content

Commit

Permalink
integer test fix for ^M
Browse files Browse the repository at this point in the history
  • Loading branch information
cynixx3 committed Jul 22, 2020
1 parent e419bf1 commit 6c94f0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miner-manager
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ else
fi

# Check Github API rate limit
if [ "$(curl -is $GIT_LOGIN https://api.github.com/rate_limit | grep -m1 ^X-Ratelimit-Remaining | cut -d ' ' -f 2)" -le 2 ] ; then
if [ "$(curl -is $GIT_LOGIN https://api.github.com/rate_limit | grep -m1 ^X-Ratelimit-Remaining | cut -d ' ' -f 2 | sed 's/\r//')" -le 2 ] ; then
echo "You have installed the maximum number of rigs github allows. You need to wait until $(date -d "@$(curl -is https://api.github.com/rate_limit | grep ^X-Ratelimit-Reset: | cut -d : -f 2)" +%r) or add GitHub authentication."
exit 19
fi
Expand Down

0 comments on commit 6c94f0e

Please sign in to comment.