mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 21:25:04 -07:00
vim-patch.sh: fix "unbound variable" error with Bash < 4.4 [ci skip] (#10917)
Ref: https://github.com/neovim/neovim/pull/10888#issuecomment-526774032
This commit is contained in:
parent
6434a0bf99
commit
d000f02bc0
@ -430,6 +430,7 @@ list_missing_vimpatches() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Get missing Vim commits
|
# Get missing Vim commits
|
||||||
|
set +u # Avoid "unbound variable" with bash < 4.4 below.
|
||||||
for vim_commit in $(list_vim_commits "${git_log_args[@]}"); do
|
for vim_commit in $(list_vim_commits "${git_log_args[@]}"); do
|
||||||
# Check for vim-patch:<commit_hash> (usually runtime updates).
|
# Check for vim-patch:<commit_hash> (usually runtime updates).
|
||||||
token="vim-patch:${vim_commit:0:7}"
|
token="vim-patch:${vim_commit:0:7}"
|
||||||
@ -449,6 +450,7 @@ list_missing_vimpatches() {
|
|||||||
echo "$vim_commit"
|
echo "$vim_commit"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
set -u
|
||||||
}
|
}
|
||||||
|
|
||||||
# Prints a human-formatted list of Vim commits, with instructional messages.
|
# Prints a human-formatted list of Vim commits, with instructional messages.
|
||||||
|
Loading…
Reference in New Issue
Block a user