mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
small bug fix
This commit is contained in:
parent
2bc7b45c45
commit
5692b62d14
2
inxi
2
inxi
|
@ -7506,7 +7506,7 @@ $repo_data_working"
|
||||||
# rsync://, ftp://, file://, http:// OR repo is locally mounted on FS in some cases
|
# rsync://, ftp://, file://, http:// OR repo is locally mounted on FS in some cases
|
||||||
if [[ -n $( grep -E '(://|[[:space:]]/)' <<< $repo_line ) ]];then
|
if [[ -n $( grep -E '(://|[[:space:]]/)' <<< $repo_line ) ]];then
|
||||||
# cut out the repo first
|
# 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
|
# then get the repo name string by slicing out the url string
|
||||||
repo_name=$( sed "s|[[:space:]]*$repo_data_working2||" <<< $repo_line )
|
repo_name=$( sed "s|[[:space:]]*$repo_data_working2||" <<< $repo_line )
|
||||||
repo_data_working="${repo_data_working}urpmq repo:$repo_name:$repo_data_working2\n"
|
repo_data_working="${repo_data_working}urpmq repo:$repo_name:$repo_data_working2\n"
|
||||||
|
|
Loading…
Reference in a new issue