Commit 0e15c5eb authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: drop extra spaces before and after URL

parent 685863d3
......@@ -1572,7 +1572,7 @@ get_urls()
# cat html, divide to lines by tags and cut off hrefs only
scat "$URL" | sed -e 's|<|<\n|g' -e 's|data-file=|href=|g' -e "s|href=http|href=\"http|g" -e "s|>|\">|g" -e "s|'|\"|g" | \
grep -i -o -E 'href="(.+)"' | sed -e 's|&amp;|\&|' | cut -d'"' -f2
grep -i -o -E 'href="(.+)"' | sed -e 's|&amp;|\&|' | cut -d'"' -f2 | sed -e 's|^ *||g' -e 's| *$||g'
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment