Repair username:password filtering

Signed-off-by: DL6ER <dl6er@dl6er.de>
pull/1779/head
DL6ER 7 years ago
parent eb83081a5c
commit c54f04ef4c
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD

@ -138,7 +138,7 @@ gravity_Collapse() {
# Logic: Split by folder/port
awk -F '[/:]' '{
# Remove URL protocol & optional username:password@
gsub(/(.*:\/\/|)/, "", $0)
gsub(/(.*:\/\/|.*:.*@)/, "", $0)
if(length($1)>0){print $1}
else {print "local"}
}' <<< "$(printf '%s\n' "${sources[@]}")" 2> /dev/null

Loading…
Cancel
Save