From edd6674178aa7a1e2b6cb4c41250d8ce035374ab Mon Sep 17 00:00:00 2001 From: Nicolas Germain Date: Sat, 9 May 2020 01:34:14 +0200 Subject: [PATCH] stdin issue fixed --- check_wallet_balances.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_wallet_balances.sh b/check_wallet_balances.sh index f26b8b6..3572f1c 100755 --- a/check_wallet_balances.sh +++ b/check_wallet_balances.sh @@ -17,7 +17,7 @@ read apisecret nonce=$(date +%s) uri="https://bittrex.com/api/v1.1/account/getbalances?apikey=$apikey&nonce=$nonce" -sign=$(echo -n "$uri" | openssl dgst -sha512 -hmac "$apisecret") +sign=$(echo -n "$uri" | openssl dgst -sha512 -hmac "$apisecret" | awk '{print $2}') # GET request on URI and parse resultant json using jq