small bug fix

This commit is contained in:
inxi-svn 2013-10-06 19:12:58 +00:00
parent 2bc7b45c45
commit 5692b62d14

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:]]+://|[[: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"