Fix scripts/vim-patch.sh for Bash 4.3

Ref: https://github.com/neovim/neovim/pull/11514#issuecomment-568780231
This commit is contained in:
Daniel Hahler 2019-12-25 13:02:23 +01:00
parent 07a2260e1d
commit 5f1aec5abd

View File

@ -399,9 +399,11 @@ declare -A tokens
declare -A vim_commit_tags
_set_tokens_and_tags() {
set +u # Avoid "unbound variable" with bash < 4.4 below.
if [[ -n "${tokens[*]}" ]]; then
return
fi
set -u
# Find all "vim-patch:xxx" tokens in the Nvim git log.
for token in $(list_vimpatch_tokens); do