From 5b246b5dd7d9768642288d4d6e9c751a3cb536cb Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Fri, 9 Jan 2009 01:57:07 +0000 Subject: [PATCH] bug fix --- inxi | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/inxi b/inxi index de17681..6817b42 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 0.9.3-b1-t1 +#### version: 0.9.3-b1-t2 #### Date: January 8, 2009 ######################################################################## #### SPECIAL THANKS @@ -1870,9 +1870,8 @@ get_hdd_data_basic() # /dev/hdc5 32981408 20955204 12026204 64% /media/hd2 # /dev/sdb1 390700768 188926868 201773900 49% /media/Snusmumrikken # /dev/sda1 732572000 248156936 484415064 34% /media/Mr. Big" - - # hdd_used=$( df | gawk ' - hdd_used=$( echo "$dfdata" | gawk ' +# hdd_used=$( echo "$dfdata" | gawk ' + hdd_used=$( df | gawk ' /^\/dev\/(mapper\/|[hs]d[a-z][0-9]+)/ { # this handles the case where the first item is too long # and makes df wrap output to next line, so here we advance