aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_logout
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-05-27 18:30:22 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-05-27 18:30:22 +1200
commitc46ca76cfaaed9826475fe677a08a6c2af6d83fa (patch)
tree7e57de9cac07e55d0022266ce58f2957af31ba08 /bash/bash_logout
parentCorrect typo in version number (diff)
downloaddotfiles-c46ca76cfaaed9826475fe677a08a6c2af6d83fa.tar.gz
dotfiles-c46ca76cfaaed9826475fe677a08a6c2af6d83fa.zip
Add missing globs for version tests
Diffstat (limited to 'bash/bash_logout')
-rw-r--r--bash/bash_logout4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/bash_logout b/bash/bash_logout
index 96fc4e3c..8d703a79 100644
--- a/bash/bash_logout
+++ b/bash/bash_logout
@@ -1,8 +1,8 @@
# 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:]]*} < 4)) ; then
return
fi