From 495a9fefbfc6200f532d017df99abe2c965783e1 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Sun, 2 Sep 2018 23:28:33 +0700 Subject: [PATCH] Disk [OpenBSD]: Detect df version through usual df check instead of making a special if uname check --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 9a2fc733..b71e8062 100755 --- a/neofetch +++ b/neofetch @@ -3076,6 +3076,7 @@ get_disk() { case "$df_version" in *"IMitv"*) df_flags=(-P -g) ;; # AIX *"befhikm"*) df_flags=(-P -k) ;; # IRIX + *"hiklnP"*) df_flags=(-h) ;; # OpenBSD *"Tracker"*) # Haiku err "Your version of df cannot be used due to the non-standard flags" @@ -3090,7 +3091,6 @@ get_disk() { if [[ "$uname" == "OpenBSD" ]]; then # On OpenBSD you can't use df against a /dev/... unless being root or # in the 'operator' group. Making a separate disks array creation. - df_flags=(-h) # building an AWK regexp disk_re="${disk_show[*]:-/}" disk_re="${disk_re// /\|}"