l pkgs.acronym: follow redirects

This commit is contained in:
lassulus 2017-09-20 18:17:19 +02:00
parent 124a6a9a9a
commit e1aa52d4d1

View File

@ -6,7 +6,7 @@ pkgs.writeScriptBin "acronym" ''
acro=$1 acro=$1
curl -s http://www.acronymfinder.com/$acro.html \ curl -L -s http://www.acronymfinder.com/$acro.html \
| grep 'class="result-list__body__rank"' \ | grep 'class="result-list__body__rank"' \
| sed ' | sed '
s/.*title="\([^"]*\)".*/\1/ s/.*title="\([^"]*\)".*/\1/