diff options
author | Daniel Hahler <git@thequod.de> | 2019-09-03 10:12:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-03 10:12:02 +0200 |
commit | d000f02bc0803cd92503293e505a2d2b4c4b8514 (patch) | |
tree | 897f0039342a756b3c871c77a311068f561919d8 | |
parent | 6434a0bf99d1733a295844813db201d533e65883 (diff) | |
download | rneovim-d000f02bc0803cd92503293e505a2d2b4c4b8514.tar.gz rneovim-d000f02bc0803cd92503293e505a2d2b4c4b8514.tar.bz2 rneovim-d000f02bc0803cd92503293e505a2d2b4c4b8514.zip |
vim-patch.sh: fix "unbound variable" error with Bash < 4.4 [ci skip] (#10917)
Ref: https://github.com/neovim/neovim/pull/10888#issuecomment-526774032
-rwxr-xr-x | scripts/vim-patch.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh index a5dca26b46..2cc32f0dd0 100755 --- a/scripts/vim-patch.sh +++ b/scripts/vim-patch.sh @@ -430,6 +430,7 @@ list_missing_vimpatches() { fi # Get missing Vim commits + set +u # Avoid "unbound variable" with bash < 4.4 below. for vim_commit in $(list_vim_commits "${git_log_args[@]}"); do # Check for vim-patch:<commit_hash> (usually runtime updates). token="vim-patch:${vim_commit:0:7}" @@ -449,6 +450,7 @@ list_missing_vimpatches() { echo "$vim_commit" fi done + set -u } # Prints a human-formatted list of Vim commits, with instructional messages. |