mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
and more comments
This commit is contained in:
parent
0a7cdb5ab7
commit
58d12b30ab
2
inxi
2
inxi
|
@ -3265,6 +3265,7 @@ $repo_data_working"
|
||||||
REPO_FILE_ID='arch repo servers'
|
REPO_FILE_ID='arch repo servers'
|
||||||
# get list of mirror include files, trim white space off ends
|
# get list of mirror include files, trim white space off ends
|
||||||
repo_data_working="$( grep -i '^Include' $pacman_conf | grep -vi 'IncludePath' | cut -d '=' -f 2 | sed 's|^[[:space:]]$||g' )"
|
repo_data_working="$( grep -i '^Include' $pacman_conf | grep -vi 'IncludePath' | cut -d '=' -f 2 | sed 's|^[[:space:]]$||g' )"
|
||||||
|
# sort into unique paths only, to be used to search for server = data
|
||||||
repo_data_working=$( sort -bu <<< "$repo_data_working" | uniq )
|
repo_data_working=$( sort -bu <<< "$repo_data_working" | uniq )
|
||||||
repo_data_working="$repo_data_working $pacman_conf"
|
repo_data_working="$repo_data_working $pacman_conf"
|
||||||
for repo_file in $repo_data_working
|
for repo_file in $repo_data_working
|
||||||
|
@ -3272,6 +3273,7 @@ $repo_data_working"
|
||||||
# inserting a new line after each found / processed match
|
# inserting a new line after each found / processed match
|
||||||
repo_data_working2="$repo_data_working2$( grep -i '^Server' $repo_file | cut -d '=' -f 2 | sed 's|^[[:space:]]$||g' | sed -r 's|(.*)|'$repo_file':\1\\n|' )"
|
repo_data_working2="$repo_data_working2$( grep -i '^Server' $repo_file | cut -d '=' -f 2 | sed 's|^[[:space:]]$||g' | sed -r 's|(.*)|'$repo_file':\1\\n|' )"
|
||||||
done
|
done
|
||||||
|
# execute line breaks
|
||||||
REPO_DATA="$( echo -e $repo_data_working2 )"
|
REPO_DATA="$( echo -e $repo_data_working2 )"
|
||||||
fi
|
fi
|
||||||
eval $LOGFE
|
eval $LOGFE
|
||||||
|
|
Loading…
Reference in a new issue