small cleanup in output

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

6
inxi
View file

@ -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
}
}
}