mirror of
https://github.com/smxi/inxi.git
synced 2025-01-31 18:12:21 +00:00
tweaked counter to handle irc color byte difference
This commit is contained in:
parent
8ac17fd729
commit
ddb7fff801
7
inxi
7
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue