mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
fixed variable name
This commit is contained in:
parent
a5c6296f6b
commit
77763f7386
12
inxi
12
inxi
|
@ -3162,7 +3162,7 @@ get_partition_data_advanced()
|
||||||
get_repo_data()
|
get_repo_data()
|
||||||
{
|
{
|
||||||
eval $LOGFS
|
eval $LOGFS
|
||||||
local repo_file='' repo_data_working='' repo_data_working2=''
|
local repo_file='' repo_data_working='' repo_data_working2='' repo_line=''
|
||||||
local apt_file='/etc/apt/sources.list' yum_repo_dir='/etc/yum.repos.d/' yum_conf='/etc/yum.conf'
|
local apt_file='/etc/apt/sources.list' yum_repo_dir='/etc/yum.repos.d/' yum_conf='/etc/yum.conf'
|
||||||
local pacman_conf='/etc/pacman.conf' pacman_repo_dir='/etc/pacman.d/' pisi_dir='/etc/pisi/'
|
local pacman_conf='/etc/pacman.conf' pacman_repo_dir='/etc/pacman.d/' pisi_dir='/etc/pisi/'
|
||||||
|
|
||||||
|
@ -3247,14 +3247,14 @@ $repo_data_working"
|
||||||
# now we need to create the structure: repo info: repo path
|
# now we need to create the structure: repo info: repo path
|
||||||
# we do that by looping through the lines of the output and then
|
# we do that by looping through the lines of the output and then
|
||||||
# putting it back into the <data>:<url> format print repos expects to see
|
# putting it back into the <data>:<url> format print repos expects to see
|
||||||
while read line
|
while read repo_line
|
||||||
do
|
do
|
||||||
# dump empty lines...
|
# dump empty lines...
|
||||||
line=$( sed 's|^[[:space:]]$||g' <<< $line )
|
repo_line=$( sed 's|^[[:space:]]$||g' <<< $repo_line )
|
||||||
if [[ -n $( grep '://' <<< $line ) ]];then
|
if [[ -n $( grep '://' <<< $repo_line ) ]];then
|
||||||
repo_data_working="$repo_data_working:$line\n"
|
repo_data_working="$repo_data_working:$repo_line\n"
|
||||||
else
|
else
|
||||||
repo_data_working="$repo_data_working$line"
|
repo_data_working="$repo_data_working$repo_line"
|
||||||
fi
|
fi
|
||||||
done <<< "$REPO_DATA"
|
done <<< "$REPO_DATA"
|
||||||
# echo and execute the line breaks inserted
|
# echo and execute the line breaks inserted
|
||||||
|
|
Loading…
Reference in a new issue