aboutsummaryrefslogtreecommitdiff
path: root/nofetch
diff options
context:
space:
mode:
Diffstat (limited to 'nofetch')
-rwxr-xr-xnofetch20
1 files changed, 10 insertions, 10 deletions
diff --git a/nofetch b/nofetch
index d2d68ae..b771894 100755
--- a/nofetch
+++ b/nofetch
@@ -12,7 +12,16 @@ else
fi
fi
-osname=$(cat /etc/os-release | grep -w NAME | head -1 | sed "s/NAME=//g" | sed "s/\"//g")" "
+
+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
if [ $rng -eq 1 ]
then
@@ -56,15 +65,6 @@ 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=""
-fi
-
echo " "
echo " > $nofetch "
echo " > $osname$(uname -smr)"