small bug fix for urpmq parsing

This commit is contained in:
inxi-svn 2013-10-06 18:54:21 +00:00
parent 9dff36e58e
commit 2bc7b45c45

2
inxi
View file

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