aboutsummaryrefslogtreecommitdiff
path: root/scripts/vim-patch.sh
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2020-03-31 22:40:33 -0400
committerJames McCoy <jamessan@jamessan.com>2020-03-31 22:40:33 -0400
commitdc7f59e04bf711b296fe0e1f0ce2159d0e97c877 (patch)
tree4ed60ac1374d3becfe0da41816dc874b61f4e52a /scripts/vim-patch.sh
parent4139678f97ee556ab142031a1ed5c7580278b64f (diff)
downloadrneovim-dc7f59e04bf711b296fe0e1f0ce2159d0e97c877.tar.gz
rneovim-dc7f59e04bf711b296fe0e1f0ce2159d0e97c877.tar.bz2
rneovim-dc7f59e04bf711b296fe0e1f0ce2159d0e97c877.zip
vim-patch.sh: Fix creation of commit list for PR review
[ci skip]
Diffstat (limited to 'scripts/vim-patch.sh')
-rwxr-xr-xscripts/vim-patch.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh
index f9726e8a87..e50eb307e5 100755
--- a/scripts/vim-patch.sh
+++ b/scripts/vim-patch.sh
@@ -670,9 +670,11 @@ review_pr() {
echo
echo "Downloading data for pull request #${pr}."
- local pr_commit_urls=(
- "$(curl -Ssf "https://api.github.com/repos/neovim/neovim/pulls/${pr}/commits" \
- | jq -r '.[].html_url')")
+ local -a pr_commit_urls
+ while IFS= read -r pr_commit_url; do
+ pr_commit_urls+=("$pr_commit_url")
+ done < <(curl -Ssf "https://api.github.com/repos/neovim/neovim/pulls/${pr}/commits" \
+ | jq -r '.[].html_url')
echo "Found ${#pr_commit_urls[@]} commit(s)."