dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 7f9917f34c19967256c845a922ba76afe1db9a91
parent 7d046fb9afcc66f2b85646fd70196340e2e274b8
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Sat,  4 Nov 2017 14:23:24 -0400

update URL for google currency converter

Diffstat:
Mlinks/bin/currency | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/links/bin/currency b/links/bin/currency @@ -19,13 +19,14 @@ if [ -n "$2" ]; then FROM=$(toUpper "$2"); else FROM=USD; fi if [ -n "$3" ]; then TO=$(toUpper "$3"); else TO=DKK; fi if [ $TO == $FROM ]; then echo "Nothing to do!"; exit 2; fi -CONVERTER="http://www.google.com/finance/converter?a=$A&from=$FROM&to=$TO" +CONVERTER="https://finance.google.com/finance/converter?a=$A&from=$FROM&to=$TO" #echo $CONVERTER GETCMD="wget --no-verbose" if command -v torify >/dev/null 2>/dev/null; then GETCMD="torify $GETCMD" fi +echo $RESULT RESULT=`$GETCMD -O - "$CONVERTER" 2>&1 | \ LC_ALL=C sed -n -e 's/.*<span class=bld>\(.*\)<\/span>.*/\1/p'`