aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2019-09-27 09:31:28 +0300
committerDylan Araps <dylan.araps@gmail.com>2019-09-27 09:31:28 +0300
commit7ec3239d0cee80274b5f2655c20a69c5fabb8022 (patch)
treed08b523397e79977e5e675e04c69fd925f1e04ee
parent3656e962c5978fdd387cfe222e6059fb0f683407 (diff)
downloadpfetch-7ec3239d0cee80274b5f2655c20a69c5fabb8022.tar.gz
docs: update
-rwxr-xr-xpfetch15
1 files changed, 12 insertions, 3 deletions
diff --git a/pfetch b/pfetch
index 209422d..04a8bcf 100755
--- a/pfetch
+++ b/pfetch
@@ -137,11 +137,20 @@ get_os() {
# each and every distribution (which _is_ technically no
# different from what it is based on) as they're either too
# lazy to modify upstream's identification files or they
- # don't have the know-how ship their own lsb-release package.
+ # don't have the know-how (or means) to ship their own
+ # lsb-release package.
#
# This causes users to think there's a bug in system detection
# tools like neofetch or pfetch when they technically *do*
# function correctly.
+ #
+ # Exceptions are made for distributions which are independent,
+ # not based on another distribution or follow different
+ # standards.
+ #
+ # This applies only to distributions which follow the standard
+ # by shipping unmodified identification files and packages
+ # from their respective upstreams.
if command -v lsb_release; then
distro=$(lsb_release -sd)
@@ -152,8 +161,8 @@ get_os() {
. /etc/os-release && distro=$PRETTY_NAME
fi
- # Special cases for distributions which don't follow
- # any os-release/lsb standards whatsoever.
+ # Special cases for (independent) distributions which
+ # don't follow any os-release/lsb standards whatsoever.
command -v crux && distro=$(crux)
command -v guix && distro='Guix System'
;;