From 58d12b30abe99d5ba2bf5e35aedc512ed5c0ab22 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Mon, 1 Feb 2010 06:22:43 +0000 Subject: [PATCH] and more comments --- inxi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inxi b/inxi index 02f1bdf..4105c4d 100755 --- a/inxi +++ b/inxi @@ -3265,6 +3265,7 @@ $repo_data_working" REPO_FILE_ID='arch repo servers' # 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' )" + # 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="$repo_data_working $pacman_conf" for repo_file in $repo_data_working @@ -3272,6 +3273,7 @@ $repo_data_working" # 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|' )" done + # execute line breaks REPO_DATA="$( echo -e $repo_data_working2 )" fi eval $LOGFE