aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_logout
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-07-31 17:26:30 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-07-31 17:26:30 +1200
commitf5ed4cd090b321064039441e40fe46a6995abf9a (patch)
tree371166922ae8e079eca565322496068d658b00ba /bash/bash_logout
parentPlace missing quotes (diff)
downloaddotfiles-f5ed4cd090b321064039441e40fe46a6995abf9a.tar.gz
dotfiles-f5ed4cd090b321064039441e40fe46a6995abf9a.zip
Use standard structure for if/for in shell
Mostly for clarity reasons; using this syntax: if [ condition ]; then commands fi As opposed to: if [ condition ] then commands fi Or: [ condition ] && command
Diffstat (limited to 'bash/bash_logout')
-rw-r--r--bash/bash_logout7
1 files changed, 4 insertions, 3 deletions
diff --git a/bash/bash_logout b/bash/bash_logout
index 15168ec8..c9b0ec6f 100644
--- a/bash/bash_logout
+++ b/bash/bash_logout
@@ -1,5 +1,6 @@
# Clear console if possible when logging out
-[[ "$SHLVL" = 1 ]] \
- && command -v clear_console &>/dev/null \
- && clear_console -q
+if [[ "$SHLVL" = 1 ]]; then
+ command -v clear_console &>/dev/null \
+ && clear_console -q
+fi