neofetch: Don't hang on FreeBSD if pkg is not yet bootstrapped
If not yet bootstrapped, pkg will print out: The package management tool is not yet installed on your system. Do you want to fetch and install it now? [y/N]: and wait for input if stdin is a tty. Use </dev/null to squash this.
This commit is contained in:
parent
ccd5d9f526
commit
97a2dd7325
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -1620,7 +1620,7 @@ get_packages() {
|
|||
|
||||
case $os-$kernel_name in
|
||||
BSD-FreeBSD|BSD-DragonFly)
|
||||
has pkg && tot pkg info
|
||||
has pkg && tot pkg info </dev/null
|
||||
;;
|
||||
|
||||
BSD-*)
|
||||
|
|
Loading…
Reference in a new issue