mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-28 00:39:31 +08:00
misc: fix few shellcheck issues in archive-branches.sh
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
@ -21,7 +21,7 @@ gh_api_next() {
|
||||
echo "$links" | grep '; rel="next"' >/dev/null || return
|
||||
link=$(echo "$links" | grep '; rel="next"' | sed -e 's/^<//' -e 's/>.*//')
|
||||
|
||||
curl $auth -f -sD >(gh_api_next) $link
|
||||
curl $auth -f -sD >(gh_api_next) "$link"
|
||||
}
|
||||
|
||||
gh_api() {
|
||||
@ -50,7 +50,7 @@ git remote add archived "git@github.com:$org/$arch_repo.git" || true
|
||||
|
||||
cat <(active_branches) <(pr_branches) <((IFS=$'\n'; echo "${exclusions[*]}")) \
|
||||
| sort -u | comm - <(origin_refs | sort) -13 |\
|
||||
while read ref; do
|
||||
while read -r ref; do
|
||||
git push archived "origin/$ref:refs/heads/$ref/$(date --rfc-3339=date)"
|
||||
git push origin --delete "$ref"
|
||||
done
|
||||
|
Reference in New Issue
Block a user