From ddb7fff80160ca749920808be8a3299d4b96d911 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Wed, 3 Dec 2008 22:19:20 +0000 Subject: [PATCH] tweaked counter to handle irc color byte difference --- inxi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/inxi b/inxi index 155f704..9e49678 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 0.7.1-b1-t3 +#### version: 0.7.1-b1-t4 #### Date: December 3 2008 ######################################################################## #### 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_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 get_partition_data