From a4d21f05928b3534cf9df11b0ccc3f86d79d88bc Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sat, 11 Jan 2020 15:09:54 -0500 Subject: vim-patch.sh: fix for bash 4.3 or older #11700 --- scripts/vim-patch.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh index 769f0fed58..d76c8573c9 100755 --- a/scripts/vim-patch.sh +++ b/scripts/vim-patch.sh @@ -574,10 +574,12 @@ list_missing_previous_vimpatches_for_patch() { fi done + set +u # Avoid "unbound variable" with bash < 4.4 below. if [[ -z "${missing_list[*]}" ]]; then msg_ok 'no missing previous Vim patches' return 0 fi + set -u local -a missing_unique while IFS= read -r line; do -- cgit