vim-patch.sh: fix for bash 4.3 or older #11700

This commit is contained in:
Jan Edmund Lazo 2020-01-11 15:09:54 -05:00 committed by Justin M. Keyes
parent 29b1a4761a
commit a4d21f0592

View File

@ -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