(Change version)

Added one more output line, for a total of 9. That's enough.
This commit is contained in:
inxi-svn 2008-12-03 23:46:16 +00:00
parent add4893ea5
commit c2c2fc3b62

16
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash
########################################################################
#### Script Name: inxi
#### version: 0.8.1
#### version: 0.8.2
#### Date: December 3 2008
########################################################################
#### inxi is a fork of infobash 3.02, the original bash sys info script by locsmif
@ -2628,7 +2628,7 @@ print_partition_data()
{
local a_partition_working='' partition_used='' swap='' partition_data='' partition_data_2=''
local partition_data_3='' partition_data_4='' partition_data_5='' partition_data_6=''
local partition_data_7='' partition_data_8='' counter=1 line_max=160
local partition_data_7='' partition_data_8='' partition_data_9='' counter=1 line_max=160
# this handles the different, shorter, irc colors strings embedded in variable data
if [[ $B_RUNNING_IN_SHELL != 'true' ]];then
@ -2699,8 +2699,14 @@ print_partition_data()
counter=8
fi
;;
*)
8)
partition_data_8="$partition_data_8${C1}ID:${C2}$swap${a_partition_working[0]} ${C1}size:${C2} ${a_partition_working[1]}$partition_used "
if [[ $( wc -c <<< $partition_data_8 ) -gt $line_max ]];then
counter=9
fi
;;
*)
partition_data_9="$partition_data_9${C1}ID:${C2}$swap${a_partition_working[0]} ${C1}size:${C2} ${a_partition_working[1]}$partition_used "
;;
esac
fi
@ -2738,6 +2744,10 @@ print_partition_data()
partition_data_8=$( create_print_line " " "$partition_data_8" )
print_screen_output "$partition_data_8"
fi
if [[ -n $partition_data_9 ]];then
partition_data_9=$( create_print_line " " "$partition_data_9" )
print_screen_output "$partition_data_9"
fi
}
print_system_data()