From 8ebea885385d808168a78407d389e24e16bc9d8b Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Thu, 6 Jun 2024 19:02:07 +0200 Subject: [PATCH] Fix logic error --- .config/shell/logout.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.config/shell/logout.sh b/.config/shell/logout.sh index 1a8b212..7e58a45 100644 --- a/.config/shell/logout.sh +++ b/.config/shell/logout.sh @@ -2,5 +2,9 @@ # Clear the screen to increase privacy if [ "$SHLVL" = 1 ]; then - [ -x /usr/bin/clear ] && /usr/bin/clear || [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q + if [ -x /usr/bin/clear ]; then + /usr/bin/clear + elif [ -x /usr/bin/clear_console ]; then + /usr/bin/clear_console -q + fi fi