diff --git a/currency/currency b/currency/currency index bf8877a..2b3fe99 100755 --- a/currency/currency +++ b/currency/currency @@ -122,7 +122,7 @@ checkInternet() ## Grabs the exchange rate and does the math for converting the currency convertCurrency() { - exchangeRate=$(curl -s "http://api.fixer.io/latest?base=$base&symbols=$exchangeTo" | grep -Eo "[0-9][.][0-9]*") > /dev/null + exchangeRate=$(curl -s "http://api.fixer.io/latest?base=$base&symbols=$exchangeTo" | grep -Eo "[0-9]*[.][0-9]*") > /dev/null exchangeAmount=$(echo "$exchangeRate * $amount" | bc ) echo echo "========================="