aboutsummaryrefslogtreecommitdiff
path: root/nofetch
diff options
context:
space:
mode:
Diffstat (limited to 'nofetch')
-rwxr-xr-xnofetch3
1 files changed, 1 insertions, 2 deletions
diff --git a/nofetch b/nofetch
index 3d85eb2..8ffc6d1 100755
--- a/nofetch
+++ b/nofetch
@@ -16,8 +16,7 @@ uname -o &> /dev/null
if [ $? -eq 0 ]
then
osname=$(uname -o)
-fi
-if [ $(uname -s) == "Darwin" ]
+elif [ $(uname -s) == "Darwin" ]
then
osname=$(sw_vers | cut -d':' -f2- | head -n 1 | xargs)
elif [ -f /etc/os-release ]