From 1cf4ce12175718c03fd1809c0d4642641673a736 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 19 Feb 2014 10:46:35 +1300 Subject: Don't print error messages for old Bash If you're running Bash so old that these files won't run, you probably realise it already. --- bash/bashrc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'bash/bashrc') diff --git a/bash/bashrc b/bash/bashrc index 3aa963d4..b10c86af 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -1,8 +1,5 @@ # Give up completely if no BASH_VERSINFO (<2.0) -if [ -z "$BASH_VERSINFO" ] ; then - printf \ - '%s: %s is too old to work with this configuration.\n' \ - "${BASH##*/}" "$BASH_VERSION" >&2 +if ! [ "$BASH_VERSINFO" ] ; then return fi -- cgit v1.2.3