packages: Fix bug with snapd. Closes #1026
This commit is contained in:
parent
e95776d40b
commit
440e8ca7b1
1 changed files with 1 additions and 1 deletions
2
neofetch
2
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")
|
||||
|
|
Loading…
Reference in a new issue