From b270518de8c96ed1e67fafd7701ae08aa932ec1e Mon Sep 17 00:00:00 2001 From: Alex Epstein Date: Sat, 1 Sep 2018 12:47:50 -0700 Subject: [PATCH] Changing endpoint in currency conversion --- currency/currency | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/currency/currency b/currency/currency index 637ca1a..1403ab1 100755 --- a/currency/currency +++ b/currency/currency @@ -136,7 +136,7 @@ checkInternet() ## Grabs the exchange rate and does the math for converting the currency convertCurrency() { - exchangeRate=$(httpGet "https://exchangeratesapi.io/api/latest?base=$base&symbols=$base,$exchangeTo" | grep -Eo "[0-9]*[.][0-9]*") > /dev/null + exchangeRate=$(httpGet "https://api.exchangeratesapi.io/latest?base=$base&symbols=$base,$exchangeTo" | grep -Eo "[0-9]*[.][0-9]*") > /dev/null if ! command -v bc &>/dev/null; then oldRate=$exchangeRate exchangeRate=$(echo $exchangeRate | grep -Eo "^[0-9]*" )