From 1c93a3848eb31ccb8b0f3217378d6e9e859077f0 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Thu, 19 Oct 2023 11:10:54 -0400 Subject: [PATCH] fix --- configs/shells/zsh/info.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/shells/zsh/info.sh b/configs/shells/zsh/info.sh index cd753cd..d17c368 100644 --- a/configs/shells/zsh/info.sh +++ b/configs/shells/zsh/info.sh @@ -1,6 +1,6 @@ # If `uname -s` is a BSD -if [ uname -s | grep BSD - > /dev/null ]; then +if [ $(uname -s | grep -c BSD) -gt 0 ]; then echo "$fg[green]Platform:$reset_color $(uname -s) $(uname -r) $(uname -p)" else # Linux echo "$fg[green]Platform:$reset_color $(uname -o) $(uname -r)"