Merge pull request #17324 from zeertzjq/vim-patch-sh-read

chore(vim-patch.sh): use piping instead of here string for `while read`
This commit is contained in:
James McCoy 2022-02-07 21:30:54 -05:00 committed by GitHub
commit 01e58fb14d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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