mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
fixed hdd bug caused by missing $ in var. Merry Christmas
This commit is contained in:
parent
9179e6a477
commit
f0a0a2bac6
6
inxi
6
inxi
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 0.9
|
#### version: 0.9.1
|
||||||
#### Date: December 24 2008
|
#### Date: December 25 2008
|
||||||
########################################################################
|
########################################################################
|
||||||
#### inxi is a fork of infobash 3.02, the original bash sys info script by locsmif
|
#### 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.
|
#### 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
|
# final item is the total of the disk
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
|
|
||||||
if [[ B_PARTITIONS_DIR == 'true' ]];then
|
if [[ $B_PARTITIONS_DIR == 'true' ]];then
|
||||||
A_HDD_DATA=( $( gawk -v hddused="$hdd_used" '
|
A_HDD_DATA=( $( gawk -v hddused="$hdd_used" '
|
||||||
/[hs]d[a-z]$/ {
|
/[hs]d[a-z]$/ {
|
||||||
driveSize = $(NF - 1)*1024/1000**3
|
driveSize = $(NF - 1)*1024/1000**3
|
||||||
|
|
Loading…
Reference in a new issue