fixed hdd bug caused by missing $ in var. Merry Christmas

This commit is contained in:
trash80.v2.0 2008-12-25 12:23:30 +00:00
parent 9179e6a477
commit f0a0a2bac6

6
inxi
View file

@ -1,8 +1,8 @@
#!/bin/bash
########################################################################
#### Script Name: inxi
#### version: 0.9
#### Date: December 24 2008
#### version: 0.9.1
#### Date: December 25 2008
########################################################################
#### inxi is a fork of infobash 3.02, the original bash sys info script by locsmif
#### As time permits functionality improvements and recoding will occur.
@ -1793,7 +1793,7 @@ get_hdd_data_basic()
# final item is the total of the disk
IFS=$'\n'
if [[ B_PARTITIONS_DIR == 'true' ]];then
if [[ $B_PARTITIONS_DIR == 'true' ]];then
A_HDD_DATA=( $( gawk -v hddused="$hdd_used" '
/[hs]d[a-z]$/ {
driveSize = $(NF - 1)*1024/1000**3