aboutsummaryrefslogtreecommitdiff
path: root/nofetch
diff options
context:
space:
mode:
authorjnats <dev@jnats.xyz>2021-05-08 23:04:26 +0100
committerjnats <dev@jnats.xyz>2021-05-08 23:04:26 +0100
commita05e20dab4d4a43c1cc4f4129fe97360c0551953 (patch)
treeeb6afd62cbbcade018107c35e0472c362e5933e3 /nofetch
parenta0d07827fe803042c19180ea6ee9a8764332e35f (diff)
downloadnofetch-a05e20dab4d4a43c1cc4f4129fe97360c0551953.tar.gz
nofetch-a05e20dab4d4a43c1cc4f4129fe97360c0551953.tar.bz2
should fix repeating on freebsd
Diffstat (limited to 'nofetch')
-rwxr-xr-xnofetch4
1 files changed, 1 insertions, 3 deletions
diff --git a/nofetch b/nofetch
index b67d150..2344614 100755
--- a/nofetch
+++ b/nofetch
@@ -63,9 +63,7 @@ else
nofetch="something has gone terribly wrong"
fi
-osname=$(echo $osname | sed 's/FreeBSD //g')
-
echo " "
echo "> $nofetch" | tr '[:upper:]' '[:lower:]'
-echo "> $osname $(uname -smr)" | tr '[:upper:]' '[:lower:]'
+echo "> $osname $(uname -smr)" | tr '[:upper:]' '[:lower:]' | sed 's/\b\([a-z]\+\)[ ,\n]\1/\1/g'
echo " "