mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
code cleanup
This commit is contained in:
parent
95dc7d47db
commit
0a7cdb5ab7
2
inxi
2
inxi
|
@ -3264,7 +3264,7 @@ $repo_data_working"
|
||||||
elif [[ -f $pacman_conf ]];then
|
elif [[ -f $pacman_conf ]];then
|
||||||
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 -Ei '^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' )"
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue