aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2022-02-07 21:30:54 -0500
committerGitHub <noreply@github.com>2022-02-07 21:30:54 -0500
commit01e58fb14d4242148affc4b882c32f38ea96f5e6 (patch)
treedb93d0cd3652193854e8f048f2e822c66ce3f737
parent8ec4410cfbe01c1a56d2283391c8cd8f20916a98 (diff)
parent4d349330a7bbaa66512fd5ac359a5d761101e774 (diff)
downloadrneovim-01e58fb14d4242148affc4b882c32f38ea96f5e6.tar.gz
rneovim-01e58fb14d4242148affc4b882c32f38ea96f5e6.tar.bz2
rneovim-01e58fb14d4242148affc4b882c32f38ea96f5e6.zip
Merge pull request #17324 from zeertzjq/vim-patch-sh-read
chore(vim-patch.sh): use piping instead of here string for `while read`
-rwxr-xr-xscripts/vim-patch.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh
index 1c265f0f40..67a2cc96fd 100755
--- a/scripts/vim-patch.sh
+++ b/scripts/vim-patch.sh
@@ -576,13 +576,13 @@ show_vimpatches() {
runtime_commits[$commit]=1
done
- while read -r vim_commit; do
+ list_missing_vimpatches 1 "$@" | while read -r vim_commit; do
if [[ "${runtime_commits[$vim_commit]-}" ]]; then
printf ' • %s (+runtime)\n' "${vim_commit}"
else
printf ' • %s\n' "${vim_commit}"
fi
- done <<< "$(list_missing_vimpatches 1 "$@")"
+ done
cat << EOF