aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]install.sh0
-rwxr-xr-xnofetch20
2 files changed, 10 insertions, 10 deletions
diff --git a/install.sh b/install.sh
index 1f6ff17..1f6ff17 100644..100755
--- a/install.sh
+++ b/install.sh
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)"