small cleanup in output

This commit is contained in:
inxi-svn 2014-09-26 05:24:08 +00:00
parent f41358e933
commit 4186f82694

8
inxi
View file

@ -9338,10 +9338,10 @@ get_repo_data()
if [[ -n $1 ]];then if [[ -n $1 ]];then
cat $repo_file &> $1/repo-data_${repo_file//\//-}.txt cat $repo_file &> $1/repo-data_${repo_file//\//-}.txt
fi 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 # construct the string for the print function to work with, file name: data
function print_line( fileName, repoId, repoUrl ){ function print_line( fileName, repoId, repoUrl ){
print "'$repo_name' sources^" fileName "^" repoId repoUrl print "'$repo_name' sources^" fileName "^" repoId repoUrl
} }
BEGIN { BEGIN {
FS="\n" FS="\n"
@ -9489,7 +9489,7 @@ $repo_data_working"
if ( activeRepos != "" ) { if ( activeRepos != "" ) {
gsub(/MIRRORPLUS\['\''|'\''\]/,"",$1) gsub(/MIRRORPLUS\['\''|'\''\]/,"",$1)
if ( match( activeRepos, $1 ) ){ if ( match( activeRepos, $1 ) ){
print "slackpkg+ sources^" repoFile "^" $1 " " $2 print "slackpkg+ sources^" repoFile "^" $1 " ~ " $2
} }
} }
}' $slackpkg_plus_file )" }' $slackpkg_plus_file )"
@ -9669,7 +9669,7 @@ $repo_data_working"
} }
if ( $1 == "enabled" ) { if ( $1 == "enabled" ) {
if ( $2 == "yes" ) { if ( $2 == "yes" ) {
print "BSD pkg server^" repoFile "^" repoName " " repoUrl print "BSD pkg server^" repoFile "^" repoName " ~ " repoUrl
} }
} }
} }