aboutsummaryrefslogtreecommitdiff
path: root/scripts/vim-patch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vim-patch.sh')
-rwxr-xr-xscripts/vim-patch.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh
index ba0e7f62dd..e844d2951c 100755
--- a/scripts/vim-patch.sh
+++ b/scripts/vim-patch.sh
@@ -6,8 +6,8 @@ set -u
set -p
# Ensure that the user has a bash that supports -A
-if [ "${BASH_VERSINFO[0]}" -lt 4 ]; then
- echo "Update your bash version to one that supports -A syntax (>3)"
+if [[ "${BASH_VERSINFO[0]}" -lt 4 ]]; then
+ echo "This script requires bash version 3 or later (you have ${BASH_VERSION})." >&2
exit 1
fi