diff options
Diffstat (limited to 'bash/bash_logout')
-rw-r--r-- | bash/bash_logout | 5 |
1 files changed, 5 insertions, 0 deletions
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 |