From 49c8092ab066815a886dfc157fcc245793a42ea4 Mon Sep 17 00:00:00 2001 From: axtlos <3alouchi2006@gmail.com> Date: Sun, 25 Apr 2021 20:46:15 +0200 Subject: remade this fork, because github was being github with the previous commits, and moved the osname to the top, since sentence 11 doesn't work with it being at the bottom --- nofetch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nofetch') diff --git a/nofetch b/nofetch index 1025e3e..fe1aa2f 100755 --- a/nofetch +++ b/nofetch @@ -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 " " -- cgit v1.2.3