aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjnats <jnats@salyut.one>2021-05-12 23:37:47 +0100
committerjnats <jnats@salyut.one>2021-05-12 23:37:47 +0100
commit9b95245de6c2c65c350db3cc43879d88498b1959 (patch)
treed0584c04dd2535ece7c04327bd4dab25b501008f
parentd27de71911c7891e36bb2bc4df48df16b22a162c (diff)
downloadnofetch-9b95245de6c2c65c350db3cc43879d88498b1959.tar.gz
nofetch-9b95245de6c2c65c350db3cc43879d88498b1959.tar.bz2
Update 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 ]