aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_logout
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-08-02 13:59:10 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-02 13:59:10 +1200
commit0b7c9900760e6af9e6adb5977a5b2425a399d85f (patch)
treeb2942c2b8497790e879bec334f75c512560567f6 /bash/bash_logout
parentUpgrading submodules (diff)
downloaddotfiles-0b7c9900760e6af9e6adb5977a5b2425a399d85f.tar.gz
dotfiles-0b7c9900760e6af9e6adb5977a5b2425a399d85f.zip
Restore stderr redirection for command -v
Some older versions of Bash seem to spit out "not found" errors for command -v on stderr
Diffstat (limited to 'bash/bash_logout')
-rw-r--r--bash/bash_logout2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bash_logout b/bash/bash_logout
index 30b0c143..4436082f 100644
--- a/bash/bash_logout
+++ b/bash/bash_logout
@@ -1,5 +1,5 @@
# Clear console if possible when logging out
-if [[ "$SHLVL" = 1 ]] && command -v clear_console >/dev/null; then
+if [[ "$SHLVL" = 1 ]] && command -v clear_console &>/dev/null; then
clear_console -q
fi