aboutsummaryrefslogtreecommitdiff
path: root/nofetch
diff options
context:
space:
mode:
Diffstat (limited to 'nofetch')
-rwxr-xr-xnofetch4
1 files changed, 4 insertions, 0 deletions
diff --git a/nofetch b/nofetch
index ada19fe..1025e3e 100755
--- a/nofetch
+++ b/nofetch
@@ -54,9 +54,13 @@ else
nofetch="something has gone terribly wrong"
fi
+# exceptions to the standard
if [ $(uname -s) == "Darwin" ]
then
osname="macOS/"
+elif [ $(uname -s) == "FreeBSD" ]
+then
+ osname=""
else
osname=$(cat /etc/os-release | grep -w NAME | head -1 | sed "s/NAME=//g" | sed "s/\"//g")" "
fi