From 76c3f129d7c8c15aa58c0dda72dc567fe5cb6393 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 14 Sep 2013 18:53:27 +1200 Subject: Safeguards to bail if Bash is just too old --- bash/bash_profile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bash/bash_profile') diff --git a/bash/bash_profile b/bash/bash_profile index c119ddba..e23ec458 100644 --- a/bash/bash_profile +++ b/bash/bash_profile @@ -1,3 +1,8 @@ +# Give up completely if no BASH_VERSINFO (<2.0) +if [ -z "$BASH_VERSINFO" ]; then + return +fi + # Source Bourne shell profile if it exists if [[ -r $HOME/.profile ]]; then source "$HOME"/.profile -- cgit v1.2.3