mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
chore(vim-patch.sh): use piping instead of here string for while read
Using a here string can cause an error if there are no missing patches: `./scripts/vim-patch.sh: line 580: runtime_commits: bad array subscript` Using piping doesn't cause the error.
This commit is contained in:
parent
0a8bfc0214
commit
4d349330a7
@ -576,13 +576,13 @@ show_vimpatches() {
|
|||||||
runtime_commits[$commit]=1
|
runtime_commits[$commit]=1
|
||||||
done
|
done
|
||||||
|
|
||||||
while read -r vim_commit; do
|
list_missing_vimpatches 1 "$@" | while read -r vim_commit; do
|
||||||
if [[ "${runtime_commits[$vim_commit]-}" ]]; then
|
if [[ "${runtime_commits[$vim_commit]-}" ]]; then
|
||||||
printf ' • %s (+runtime)\n' "${vim_commit}"
|
printf ' • %s (+runtime)\n' "${vim_commit}"
|
||||||
else
|
else
|
||||||
printf ' • %s\n' "${vim_commit}"
|
printf ' • %s\n' "${vim_commit}"
|
||||||
fi
|
fi
|
||||||
done <<< "$(list_missing_vimpatches 1 "$@")"
|
done
|
||||||
|
|
||||||
cat << EOF
|
cat << EOF
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user