aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-01-11 15:09:54 -0500
committerJustin M. Keyes <justinkz@gmail.com>2020-01-11 12:09:54 -0800
commita4d21f05928b3534cf9df11b0ccc3f86d79d88bc (patch)
treefe89a454b7566632ee0b49f64cf9934d4ad11cf3
parent29b1a4761a9fadfa9de05cfd9c8aad281fc29791 (diff)
downloadrneovim-a4d21f05928b3534cf9df11b0ccc3f86d79d88bc.tar.gz
rneovim-a4d21f05928b3534cf9df11b0ccc3f86d79d88bc.tar.bz2
rneovim-a4d21f05928b3534cf9df11b0ccc3f86d79d88bc.zip
vim-patch.sh: fix for bash 4.3 or older #11700
-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 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