diff options
author | jnats <dev@jnats.xyz> | 2021-04-25 23:12:04 +0100 |
---|---|---|
committer | jnats <dev@jnats.xyz> | 2021-04-25 23:12:04 +0100 |
commit | 6e8b9bdacc005ff1a7ebaeac990290333959f213 (patch) | |
tree | 1988928af08d0aeafdebf4f062f5a3bf9bd46d3b /nofetch | |
parent | 00a478e53494836999bf132ede9c39b4ebaa7763 (diff) | |
download | nofetch-6e8b9bdacc005ff1a7ebaeac990290333959f213.tar.gz nofetch-6e8b9bdacc005ff1a7ebaeac990290333959f213.tar.bz2 |
fixed on macos
also made install.sh executable by default (hopefully itll work lol)
Diffstat (limited to 'nofetch')
-rwxr-xr-x | nofetch | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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)" |