From 0596c51a0e468c0f5753937bdec990fa9b2d1aa2 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Thu, 3 Aug 2023 08:36:10 +0300 Subject: [PATCH] fix(scripts): fix x-welcome-banner time comparison --- local/bin/x-welcome-banner | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/local/bin/x-welcome-banner b/local/bin/x-welcome-banner index 0e1e420..b0073bd 100755 --- a/local/bin/x-welcome-banner +++ b/local/bin/x-welcome-banner @@ -18,7 +18,7 @@ RESET='\033[0m' # Print time-based personalized message, using figlet & lolcat if availible function welcome_greeting () { h=$(date +%H) - if [ "$h" -lt 04 ] || [[ $h -gt 22 ]]; + if [ "$h" -lt 04 ] || [ "$h" -gt 22 ]; then greeting="Good Night" elif [ "$h" -lt 12 ]; then greeting="Good morning" @@ -41,7 +41,7 @@ function welcome_greeting () { function welcome_sysinfo () { if hash neofetch 2>/dev/null; then neofetch --shell_version off \ - --disable kernel distro shell resolution de wm wm_theme theme icons terminal \ + --disable kernel distro shell resolution cpu gpu de wm wm_theme theme icons terminal \ --backend off \ --colors 4 8 4 4 8 6 \ --color_blocks off \