aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-09-21 15:14:09 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-09-21 15:14:09 +1200
commit256a324ecfc7f81d75ea7fd05c336b2b7b336b1e (patch)
tree13e07ea6b38d0acfec3cf6c54cae35e9c03020e7 /bash
parentRemove sudo completion (diff)
downloaddotfiles-256a324ecfc7f81d75ea7fd05c336b2b7b336b1e.tar.gz
dotfiles-256a324ecfc7f81d75ea7fd05c336b2b7b336b1e.zip
Add basic version check to bash_logout
Diffstat (limited to 'bash')
-rw-r--r--bash/bash_logout5
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