diff --git a/neofetch b/neofetch index 96cd9850..cd4f1d70 100755 --- a/neofetch +++ b/neofetch @@ -1301,7 +1301,7 @@ get_packages() { # Snap hangs if the command is run without the daemon running. # Only run snap if the daemon is also running. - has "snap" && ps -e | grep -Fm 1 "snapd" && tot snap list && ((packages-=1)) + has "snap" && ps -e | grep -qFm 1 "snapd" >/dev/null && tot snap list && ((packages-=1)) ;; "Mac OS X" | "MINIX")