vim-patch.sh: fix bash version-check message #12398

This commit is contained in:
Poh Zi How 2020-06-01 01:27:05 +08:00 committed by GitHub
parent 4b87248285
commit ed815c61fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ set -p
# Ensure that the user has a bash that supports -A # Ensure that the user has a bash that supports -A
if [[ "${BASH_VERSINFO[0]}" -lt 4 ]]; then if [[ "${BASH_VERSINFO[0]}" -lt 4 ]]; then
echo "This script requires bash version 3 or later (you have ${BASH_VERSION})." >&2 >&2 echo "error: script requires bash 4+ (you have ${BASH_VERSION})."
exit 1 exit 1
fi fi