From 6ef6da0d249c87a6d80a1a2bec25af26ac661ed0 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Mon, 15 Apr 2024 19:39:29 -0400 Subject: [PATCH] Try to fix busybox check --- configs/shells/bash/info.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/shells/bash/info.sh b/configs/shells/bash/info.sh index af92ec5..d2a4662 100644 --- a/configs/shells/bash/info.sh +++ b/configs/shells/bash/info.sh @@ -20,7 +20,7 @@ else # Linux-y things echo -e "${green}Platform:$reset_color $(uname -o) $(uname -r)" # If the `uptime` binary is *not* busybox, we can show it - if [ $(uptime -V | grep -c busybox) -eq 0 ]; then + if [ $(uptime -V 2>&1 | grep -c busybox) -eq 0 ]; then echo -e "${green}Uptime:$reset_color $(uptime -p)" fi fi