aboutsummaryrefslogtreecommitdiff
path: root/nofetch
diff options
context:
space:
mode:
authorjnats <jnats@salyut.one>2021-05-19 13:53:17 +0100
committerjnats <jnats@salyut.one>2021-05-19 13:53:17 +0100
commitce81ad7b7dfb7a4c066348ee34189bc1fd788ef1 (patch)
tree617e9b91af9e056e18996c3df7effa198bae1459 /nofetch
parent7c048f4d6ff8390a020249d5f22259cf5fae9233 (diff)
downloadnofetch-ce81ad7b7dfb7a4c066348ee34189bc1fd788ef1.tar.gz
nofetch-ce81ad7b7dfb7a4c066348ee34189bc1fd788ef1.tar.bz2
fixed output on *bsd systems
Diffstat (limited to 'nofetch')
-rwxr-xr-xnofetch6
1 files changed, 6 insertions, 0 deletions
diff --git a/nofetch b/nofetch
index 7e9bfe1..f4b9401 100755
--- a/nofetch
+++ b/nofetch
@@ -72,6 +72,12 @@ osname=$(echo $osname | sed 's/FreeBSD //g')
if [ $1 == "-o" ] &> /dev/null || [ $2 == "-o" ] &> /dev/null
then
echo "$osname"
+elif [[ "$osname" == *"BSD"* ]]
+then
+ echo " "
+ echo "> $nofetch" | tr '[:upper:]' '[:lower:]'
+ echo "> $(uname -smr)" | tr '[:upper:]' '[:lower:]'
+ echo " "
else
echo " "
echo "> $nofetch" | tr '[:upper:]' '[:lower:]'