mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
(change version)
adding in a spacer in :// to turn off auto show page title in irc clients. For terminal, will not add space. This fixes an irc client bot showing title of web pages of any url, like amybot
This commit is contained in:
parent
1ebd24b2ff
commit
bf9cf87ffb
12
inxi
12
inxi
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 1.2.1
|
#### version: 1.2.2
|
||||||
#### Date: October 12 2009
|
#### Date: October 12 2009
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
|
@ -4302,8 +4302,14 @@ print_repo_data()
|
||||||
(( repo_count++ ))
|
(( repo_count++ ))
|
||||||
file_name=$( cut -d ':' -f 1 <<< $repo_line )
|
file_name=$( cut -d ':' -f 1 <<< $repo_line )
|
||||||
file_content=$( cut -d ':' -f 2-6 <<< $repo_line )
|
file_content=$( cut -d ':' -f 2-6 <<< $repo_line )
|
||||||
# this will dump unwanted white space line starters
|
# this will dump unwanted white space line starters. Some irc channels
|
||||||
file_content=$( echo $file_content )
|
# use bots that show page title for urls, so need to break the url by adding
|
||||||
|
# a white space.
|
||||||
|
if [[ $B_RUNNING_IN_SHELL != 'true' ]];then
|
||||||
|
file_content=$( echo $file_content | sed 's|://|: //|' )
|
||||||
|
else
|
||||||
|
file_content=$( echo $file_content )
|
||||||
|
fi
|
||||||
# check file name, if different, update the holder for print out
|
# check file name, if different, update the holder for print out
|
||||||
if [[ $file_name != $file_name_holder ]];then
|
if [[ $file_name != $file_name_holder ]];then
|
||||||
repo_full="${C1}Contents of $REPO_FILE_ID file:${C2} $file_name"
|
repo_full="${C1}Contents of $REPO_FILE_ID file:${C2} $file_name"
|
||||||
|
|
Loading…
Reference in a new issue