diff --git a/inxi b/inxi index 6c79b10..6e3a0c2 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:]]+://|[[: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"