diff --git a/inxi b/inxi index 47da36e..e5fdda7 100755 --- a/inxi +++ b/inxi @@ -1,8 +1,8 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 1.8.11 -#### Date: June 26 2012 +#### version: 1.8.12 +#### Date: July 1 2012 #### Patch Number: 00 ######################################################################## #### SPECIAL THANKS @@ -7065,10 +7065,19 @@ print_hard_disk_data() # printing line one, then new lines according to $divisor setting, and after, if leftovers, print that line. case $i in 0) - hdd_data=$( create_print_line "$Line_Starter" "${C1}HDD Total Size:${C2} ${hdd_capacity} (${hdd_used}) ${hdd_model}" ) - print_screen_output "$hdd_data" - hdd_model='' - Line_Starter=' ' + if [[ $divisor -eq 1 ]];then + hdd_data=$( create_print_line "$Line_Starter" "${C1}HDD Total Size:${C2} ${hdd_capacity} (${hdd_used})" ) + print_screen_output "$hdd_data" + Line_Starter=' ' + hdd_data=$( create_print_line "$Line_Starter" "${hdd_model}" ) + print_screen_output "$hdd_data" + hdd_model='' + else + hdd_data=$( create_print_line "$Line_Starter" "${C1}HDD Total Size:${C2} ${hdd_capacity} (${hdd_used}) ${hdd_model}" ) + print_screen_output "$hdd_data" + hdd_model='' + Line_Starter=' ' + fi ;; *) # using modulus here, if divisible by $divisor, print line, otherwise skip