From 07a9bcdd3cfb6e9642744a7a280e0a2a54dccf44 Mon Sep 17 00:00:00 2001 From: Mitch Weaver Date: Thu, 12 Mar 2020 03:39:35 -0500 Subject: [PATCH] detect whether using -current on OpenBSD change name to please shellhcheck sorry shellcheck... --- neofetch | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/neofetch b/neofetch index 88ce6965..ce9b3478 100755 --- a/neofetch +++ b/neofetch @@ -1032,6 +1032,11 @@ get_distro() { *) distro="Guix System $(guix system -V | awk 'NR==1{printf $5}')" esac + # Display whether using '-current' or '-release' on OpenBSD. + elif [[ $kernel_name = OpenBSD ]] ; then + read -ra kernel_info <<< "$(sysctl -n kern.version)" + distro=${kernel_info[*]:0:2} + else for release_file in /etc/*-release; do distro+=$(< "$release_file")