From 5f1aec5abdb551e5f3035ca054d36580b3233efb Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 25 Dec 2019 13:02:23 +0100 Subject: [PATCH] Fix scripts/vim-patch.sh for Bash 4.3 Ref: https://github.com/neovim/neovim/pull/11514#issuecomment-568780231 --- scripts/vim-patch.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh index 483264415e..b5806311c9 100755 --- a/scripts/vim-patch.sh +++ b/scripts/vim-patch.sh @@ -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