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_logout | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash/bash_logout') diff --git a/bash/bash_logout b/bash/bash_logout index ac437add..f0985687 100644 --- a/bash/bash_logout +++ b/bash/bash_logout @@ -1,7 +1,7 @@ # 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:]]*} < 4)) ; then return fi -- cgit v1.2.3