mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
tiny cleanup, dumped a sed and use bash parameter expansion instead.
This commit is contained in:
parent
2826619b05
commit
788ca63f98
5
inxi
5
inxi
|
@ -5637,7 +5637,6 @@ get_hard_drive_data_advanced()
|
|||
# get rid of whitespace for some drive names and ids, and extra data after - in name
|
||||
temp_name=$( cut -d '-' -f 1 <<< ${a_temp_scsi[$j]// /_} )
|
||||
sd_ls_by_id=$( grep -Em1 ".*$temp_name.*${a_temp_working[0]}$" <<< "$ls_disk_by_id" )
|
||||
|
||||
if [[ -n $sd_ls_by_id ]];then
|
||||
temp_name=${a_temp_scsi[$j]}
|
||||
break
|
||||
|
@ -11393,7 +11392,7 @@ print_repo_data()
|
|||
# use bots that show page title for urls, so need to break the url by adding
|
||||
# a white space.
|
||||
if [[ $B_IRC == 'true' ]];then
|
||||
file_content=$( echo $file_content | sed 's|://|: //|' )
|
||||
file_content=$( echo ${file_content/:\/\//: \/\/} )
|
||||
else
|
||||
file_content=$( echo $file_content )
|
||||
fi
|
||||
|
@ -11759,7 +11758,7 @@ print_weather_data()
|
|||
local weather_data='' location_string='' local_time='' time_string='' pressure=''
|
||||
local a_location='' a_weather='' weather_string='' weather='' temp='' winds='' humidity=''
|
||||
local time_zone='' observation_time='' city='' state='' country='' altitude=''
|
||||
local heat_index="" wind_chill='' dewpoint='' xxx_humidity=''
|
||||
local heat_index='' wind_chill='' dewpoint='' xxx_humidity=''
|
||||
local openP='(' closeP=')'
|
||||
|
||||
if [[ $B_IRC == 'true' ]];then
|
||||
|
|
Loading…
Reference in a new issue