From 256a324ecfc7f81d75ea7fd05c336b2b7b336b1e Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 21 Sep 2013 15:14:09 +1200 Subject: Add basic version check to bash_logout --- bash/bash_logout | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bash/bash_logout') diff --git a/bash/bash_logout b/bash/bash_logout index 0c9af8c1..2cffa5f8 100644 --- a/bash/bash_logout +++ b/bash/bash_logout @@ -1,3 +1,8 @@ +# Give up completely if no BASH_VERSINFO (<2.0) +if [ -z "$BASH_VERSINFO" ]; then + return +fi + # Clear console if possible when logging out if ((SHLVL == 1)); then clear_console -q 2>/dev/null -- cgit v1.2.3