From 2bc7b45c451f223fbd4c1e7cf0241d5451df84da Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Sun, 6 Oct 2013 18:54:21 +0000 Subject: [PATCH] small bug fix for urpmq parsing --- inxi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inxi b/inxi index ad19670..6c79b10 100755 --- a/inxi +++ b/inxi @@ -7506,7 +7506,7 @@ $repo_data_working" # rsync://, ftp://, file://, http:// OR repo is locally mounted on FS in some cases if [[ -n $( grep -E '(://|[[:space:]]/)' <<< $repo_line ) ]];then # cut out the repo first - repo_data_working2=$( grep -Eo '[^[:space:]]+://.*' <<< $repo_line ) + repo_data_working2=$( grep -Eo '[^[:space:]]+(://|/).*' <<< $repo_line ) # then get the repo name string by slicing out the url string repo_name=$( sed "s|[[:space:]]*$repo_data_working2||" <<< $repo_line ) repo_data_working="${repo_data_working}urpmq repo:$repo_name:$repo_data_working2\n"