From a5c6296f6b9f3635528f843af912c96460c43a84 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Mon, 1 Feb 2010 06:23:44 +0000 Subject: [PATCH] and some code cleanup --- inxi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index 4105c4d..fd74966 100755 --- a/inxi +++ b/inxi @@ -3244,7 +3244,6 @@ $repo_data_working" # pisi - pardus elif [[ -d $pisi_dir && -n $( type -p pisi ) ]];then REPO_DATA="$( pisi list-repo )" - REPO_FILE_ID='pisi repo' # now we need to create the structure: repo info: repo path # we do that by looping through the lines of the output and then # putting it back into the : format print repos expects to see @@ -3260,9 +3259,9 @@ $repo_data_working" done <<< "$REPO_DATA" # echo and execute the line breaks inserted REPO_DATA="$( echo -e $repo_data_working )" + REPO_FILE_ID='pisi repo' # pacman - archlinux elif [[ -f $pacman_conf ]];then - 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 @@ -3275,6 +3274,7 @@ $repo_data_working" done # execute line breaks REPO_DATA="$( echo -e $repo_data_working2 )" + REPO_FILE_ID='arch repo servers' fi eval $LOGFE }