diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-21 15:14:09 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-21 15:14:09 +1200 |
commit | 256a324ecfc7f81d75ea7fd05c336b2b7b336b1e (patch) | |
tree | 13e07ea6b38d0acfec3cf6c54cae35e9c03020e7 /bash | |
parent | Remove sudo completion (diff) | |
download | dotfiles-256a324ecfc7f81d75ea7fd05c336b2b7b336b1e.tar.gz dotfiles-256a324ecfc7f81d75ea7fd05c336b2b7b336b1e.zip |
Add basic version check to bash_logout
Diffstat (limited to 'bash')
-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 |