mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
bug fix
This commit is contained in:
parent
a81e8e5f0c
commit
5b246b5dd7
7
inxi
7
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
|
||||
|
|
Loading…
Reference in a new issue