docs: update
This commit is contained in:
parent
15777b190a
commit
aadab4e15f
1 changed files with 6 additions and 0 deletions
6
pfetch
6
pfetch
|
@ -124,6 +124,12 @@ get_distro() {
|
|||
# shellcheck source=/dev/null
|
||||
. /etc/os-release && distro=$PRETTY_NAME
|
||||
;;
|
||||
|
||||
*)
|
||||
# Catch all to ensure '$distro' is never blank.
|
||||
# This should also handle the BSDs, macOS etc.
|
||||
distro=$os
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue