Skip to content

Commit

Permalink
Fix scripts/vim-patch.sh for Bash 4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Dec 25, 2019
1 parent 07a2260 commit 5f1aec5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/vim-patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5f1aec5

Please sign in to comment.