aboutsummaryrefslogtreecommitdiff
path: root/nofetch
diff options
context:
space:
mode:
Diffstat (limited to 'nofetch')
-rw-r--r--nofetch9
1 files changed, 7 insertions, 2 deletions
diff --git a/nofetch b/nofetch
index 66fda86..db61f55 100644
--- a/nofetch
+++ b/nofetch
@@ -36,9 +36,14 @@ else
nofetch="something has gone terribly wrong"
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/"
+else
+ osname=$(cat /etc/os-release | grep -w NAME | head -1 | sed "s/NAME=//g" | sed "s/\"//g")" "
+fi
echo " "
echo " > $nofetch "
-echo " > $osname $(uname -smr)"
+echo " > $osname$(uname -smr)"
echo " "