From a56c015950d810a3b1e38c942252f24920fe6023 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 31 Jul 2013 19:13:54 +1200 Subject: Combine conditionals in logout script --- bash/bash_logout | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bash/bash_logout') diff --git a/bash/bash_logout b/bash/bash_logout index 4438bbe6..30b0c143 100644 --- a/bash/bash_logout +++ b/bash/bash_logout @@ -1,6 +1,5 @@ # Clear console if possible when logging out -if [[ "$SHLVL" = 1 ]]; then - command -v clear_console >/dev/null \ - && clear_console -q +if [[ "$SHLVL" = 1 ]] && command -v clear_console >/dev/null; then + clear_console -q fi -- cgit v1.2.3