Looks like the program is attempting to use the total page count number without first verifying that it has been obtained. This was observed when working on a network that was dropping all traffic that was outbound to the Internet:
$ ads-github-fetch-all-upstreams -vcu
ads-github-fetch-all-upstreams (info): verbose output requested; enabling info-level output
ads-github-fetch-all-upstreams (info): configured GitHub API base URL: "https://api.github.com/"
ads-github-fetch-all-upstreams (info): configured HTTP 'Accept:' header for GitHub API version: "Accept: application/vnd.github.v3+json"
curl: (7) Failed to connect to api.github.com port 443: Connection timed out
ads-github-fetch-all-upstreams (error): was unable to obtain pagination info for repos; bailing out
ads-github-fetch-all-upstreams (info): requesting /user/repos page 1 of
curl: (7) Failed to connect to api.github.com port 443: Connection timed out
/path/to/bin/ads-github-fetch-all-upstreams: line 1067: test: 1: unary operator expected
ads-github-fetch-all-upstreams (info): requesting /user/repos page 2 of
curl: (7) Failed to connect to api.github.com port 443: Connection timed out
/path/to/bin/ads-github-fetch-all-upstreams: line 1067: test: 2: unary operator expected
...
$ ads-github-fetch-all-upstreams --version
ads-github-fetch-all-upstreams 0.2.0 (built: 2017-02-26 16:52:07)
Copyright (C) 2016, 2017 Alan D. Salewski
License GPLv2+: GNU GPL version 2 or later .
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Alan D. Salewski.
Looks like the program is attempting to use the total page count number without first verifying that it has been obtained. This was observed when working on a network that was dropping all traffic that was outbound to the Internet:
$ ads-github-fetch-all-upstreams -vcu ads-github-fetch-all-upstreams (info): verbose output requested; enabling info-level output ads-github-fetch-all-upstreams (info): configured GitHub API base URL: "https://api.github.com/" ads-github-fetch-all-upstreams (info): configured HTTP 'Accept:' header for GitHub API version: "Accept: application/vnd.github.v3+json" curl: (7) Failed to connect to api.github.com port 443: Connection timed out ads-github-fetch-all-upstreams (error): was unable to obtain pagination info for repos; bailing out ads-github-fetch-all-upstreams (info): requesting /user/repos page 1 of curl: (7) Failed to connect to api.github.com port 443: Connection timed out /path/to/bin/ads-github-fetch-all-upstreams: line 1067: test: 1: unary operator expected ads-github-fetch-all-upstreams (info): requesting /user/repos page 2 of curl: (7) Failed to connect to api.github.com port 443: Connection timed out /path/to/bin/ads-github-fetch-all-upstreams: line 1067: test: 2: unary operator expected ...$ ads-github-fetch-all-upstreams --version ads-github-fetch-all-upstreams 0.2.0 (built: 2017-02-26 16:52:07) Copyright (C) 2016, 2017 Alan D. Salewski License GPLv2+: GNU GPL version 2 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Alan D. Salewski.