From c3ce92d98f0b11d8fb51551001dc58c94b0bb46d Mon Sep 17 00:00:00 2001 From: Un1q32 Date: Wed, 1 May 2024 18:06:58 -0400 Subject: [PATCH] fix weird syntax --- pfetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pfetch b/pfetch index 329573c..f0fce5a 100755 --- a/pfetch +++ b/pfetch @@ -223,14 +223,14 @@ get_os() { # # On first run, this function displays _nothing_, only on the second # invocation is 'log()' called. - [ -n "$distro" ] && { + if [ -n "$distro" ]; then if [ -n "$PF_OS" ]; then log os "$PF_OS" >&6 else log os "$distro" >&6 fi return - } + fi case $os in (Linux*|GNU*)