mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
small cleanup in output
This commit is contained in:
parent
f41358e933
commit
4186f82694
6
inxi
6
inxi
|
@ -9338,7 +9338,7 @@ get_repo_data()
|
|||
if [[ -n $1 ]];then
|
||||
cat $repo_file &> $1/repo-data_${repo_file//\//-}.txt
|
||||
fi
|
||||
repo_data_working="$( gawk -v repoFile=$repo_file '
|
||||
repo_data_working="$( gawk -v repoFile="$repo_file" '
|
||||
# construct the string for the print function to work with, file name: data
|
||||
function print_line( fileName, repoId, repoUrl ){
|
||||
print "'$repo_name' sources^" fileName "^" repoId repoUrl
|
||||
|
@ -9489,7 +9489,7 @@ $repo_data_working"
|
|||
if ( activeRepos != "" ) {
|
||||
gsub(/MIRRORPLUS\['\''|'\''\]/,"",$1)
|
||||
if ( match( activeRepos, $1 ) ){
|
||||
print "slackpkg+ sources^" repoFile "^" $1 " " $2
|
||||
print "slackpkg+ sources^" repoFile "^" $1 " ~ " $2
|
||||
}
|
||||
}
|
||||
}' $slackpkg_plus_file )"
|
||||
|
@ -9669,7 +9669,7 @@ $repo_data_working"
|
|||
}
|
||||
if ( $1 == "enabled" ) {
|
||||
if ( $2 == "yes" ) {
|
||||
print "BSD pkg server^" repoFile "^" repoName " " repoUrl
|
||||
print "BSD pkg server^" repoFile "^" repoName " ~ " repoUrl
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue