From 37e1d75d0c51a2e8e947ae524e4e686e0a9eeffc Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 22 Aug 2015 19:15:56 +1200 Subject: Remove overkill chopping on BASH_VERSINFO[0] Pointed out by Amy Grace. --- bash/bash_profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash/bash_profile') diff --git a/bash/bash_profile b/bash/bash_profile index 05b15693..1269492e 100644 --- a/bash/bash_profile +++ b/bash/bash_profile @@ -6,7 +6,7 @@ fi # Ensure we're using at least version 2.05 if ! [ -n "$BASH_VERSINFO" ] ; then return -elif ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} == 2)) && \ +elif ((BASH_VERSINFO[0] == 2)) && \ ((10#${BASH_VERSINFO[1]%%[![:digit:]]*} < 5)) ; then return fi -- cgit v1.2.3