tweaked counter to handle irc color byte difference

This commit is contained in:
inxi-svn 2008-12-03 22:19:20 +00:00
parent 8ac17fd729
commit ddb7fff801

7
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
######################################################################## ########################################################################
#### Script Name: inxi #### Script Name: inxi
#### version: 0.7.1-b1-t3 #### version: 0.7.1-b1-t4
#### Date: December 3 2008 #### Date: December 3 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
@ -2623,6 +2623,11 @@ print_partition_data()
local partition_data_3='' partition_data_4='' partition_data_5='' partition_data_6='' local partition_data_3='' partition_data_4='' partition_data_5='' partition_data_6=''
local partition_data_7='' counter=1 line_max=150 local partition_data_7='' counter=1 line_max=150
# this handles the different irc colors strings embedded in variable data
if [[ $B_RUNNING_IN_SHELL != 'true' ]];then
line_max=130
fi
# set A_PARTITION_DATA # set A_PARTITION_DATA
get_partition_data get_partition_data