diff options
author | jnats <dev@jnats.xyz> | 2021-04-25 22:22:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-25 22:22:04 +0100 |
commit | da6d571a62c22addf6c81322b2d7e85ab7dc95c3 (patch) | |
tree | bea309964d69a8ec5035887cea28c5ee58361ab9 /nofetch | |
parent | ca6762ce5760107e8e4530f26b42c12906aa8530 (diff) | |
parent | 49c8092ab066815a886dfc157fcc245793a42ea4 (diff) | |
download | nofetch-da6d571a62c22addf6c81322b2d7e85ab7dc95c3.tar.gz nofetch-da6d571a62c22addf6c81322b2d7e85ab7dc95c3.tar.bz2 |
Merge pull request #3 from axtloss/main
remake of fork and bugfixes
Diffstat (limited to 'nofetch')
-rwxr-xr-x | nofetch | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4,7 +4,7 @@ if [[ $1 == "" ]]; then rng=$((1 + $RANDOM % 11 )) else - if [[ $1 -lt 11 ]]; + if [[ $1 -lt 12 ]]; then rng=$1 else @@ -12,6 +12,8 @@ else fi fi +osname=$(cat /etc/os-release | grep -w NAME | head -1 | sed "s/NAME=//g" | sed "s/\"//g")" " + if [ $rng -eq 1 ] then nofetch="probably a computer" @@ -61,8 +63,6 @@ then 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 echo " " |