From a26a2160aeb46f6c1fd17d16d17c7a431b185076 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Thu, 25 Nov 2021 20:14:19 +0100 Subject: [PATCH] Fix the script Signed-off-by: Jakub Sztandera --- scripts/archive-branches.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/archive-branches.sh b/scripts/archive-branches.sh index b181184d0..e01316106 100755 --- a/scripts/archive-branches.sh +++ b/scripts/archive-branches.sh @@ -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/^.*//')