mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Fix scripts/vim-patch.sh for Bash 4.3
Ref: https://github.com/neovim/neovim/pull/11514#issuecomment-568780231
This commit is contained in:
parent
07a2260e1d
commit
5f1aec5abd
@ -399,9 +399,11 @@ declare -A tokens
|
|||||||
declare -A vim_commit_tags
|
declare -A vim_commit_tags
|
||||||
|
|
||||||
_set_tokens_and_tags() {
|
_set_tokens_and_tags() {
|
||||||
|
set +u # Avoid "unbound variable" with bash < 4.4 below.
|
||||||
if [[ -n "${tokens[*]}" ]]; then
|
if [[ -n "${tokens[*]}" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
set -u
|
||||||
|
|
||||||
# Find all "vim-patch:xxx" tokens in the Nvim git log.
|
# Find all "vim-patch:xxx" tokens in the Nvim git log.
|
||||||
for token in $(list_vimpatch_tokens); do
|
for token in $(list_vimpatch_tokens); do
|
||||||
|
Loading…
Reference in New Issue
Block a user