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
list_vimpatch_tokens | while read -r vimpatch_token; do
echo "$vimpatch_token" | grep '8\.0\.' | sed 's/.*vim-patch:8\.0\.\([0-9a-z]\+\).*/\1/'
done
}
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