Fix the script

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2021-11-25 20:14:19 +01:00
parent aafdf3d093
commit a26a2160ae
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -13,7 +13,7 @@ exclusions=(
)
gh_api_next() {
links=$(grep '^Link:' | sed -e 's/Link: //' -e 's/, /\n/g')
links=$(grep '^link:' | sed -e 's/link: //' -e 's/, /\n/g')
echo "$links" | grep '; rel="next"' >/dev/null || return
link=$(echo "$links" | grep '; rel="next"' | sed -e 's/^<//' -e 's/>.*//')