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:
Jessica Clarke 2021-12-28 04:32:00 +00:00 committed by GitHub
parent ccd5d9f526
commit 97a2dd7325
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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-*)