aboutsummaryrefslogtreecommitdiff
path: root/scripts/vim-patch.sh
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-12-25 13:02:23 +0100
committerDaniel Hahler <git@thequod.de>2019-12-25 13:03:16 +0100
commit5f1aec5abdb551e5f3035ca054d36580b3233efb (patch)
treeec0f34c3097935879e6b7de04fccfabc703908ee /scripts/vim-patch.sh
parent07a2260e1d5fa8c7c4e2ec1ff8679a120fe399e8 (diff)
downloadrneovim-5f1aec5abdb551e5f3035ca054d36580b3233efb.tar.gz
rneovim-5f1aec5abdb551e5f3035ca054d36580b3233efb.tar.bz2
rneovim-5f1aec5abdb551e5f3035ca054d36580b3233efb.zip
Fix scripts/vim-patch.sh for Bash 4.3
Ref: https://github.com/neovim/neovim/pull/11514#issuecomment-568780231
Diffstat (limited to 'scripts/vim-patch.sh')
-rwxr-xr-xscripts/vim-patch.sh2
1 files changed, 2 insertions, 0 deletions
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