From c46ca76cfaaed9826475fe677a08a6c2af6d83fa Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 27 May 2015 18:30:22 +1200 Subject: Add missing globs for version tests --- bash/bash_profile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bash/bash_profile') diff --git a/bash/bash_profile b/bash/bash_profile index 4e25ab24..91c0f867 100644 --- a/bash/bash_profile +++ b/bash/bash_profile @@ -6,8 +6,8 @@ fi # Ensure we're using at least version 2.05 if ! test -n "$BASH_VERSINFO" ; then return -elif ((10#${BASH_VERSINFO[0]%%[![:digit:]]} == 2)) \ - && ((10#${BASH_VERSINFO[1]%%[![:digit:]]} < 5)) ; then +elif ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} == 2)) \ + && ((10#${BASH_VERSINFO[1]%%[![:digit:]]*} < 5)) ; then return fi -- cgit v1.2.3