From e20264173da46fa4d12ab50940d368bff25c3e6d Mon Sep 17 00:00:00 2001 From: chee Date: Fri, 21 Jun 2019 15:03:59 +0000 Subject: [PATCH] correct the env var name --- run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run b/run index aec2583..360aab1 100755 --- a/run +++ b/run @@ -14,9 +14,9 @@ if [ "$code" == "unauthorized.bad_access_token.expired" ]; then "client_secret=$client_secret" \ "refresh_token=$refresh_token") echo $response - activity_token=$(echo $response | jq -r .access_token) + access_token=$(echo $response | jq -r .access_token) refresh_token=$(echo $response | jq -r .refresh_token) - echo "activity_token=\"$activity_token\"" >> .env + echo "access_token=\"$access_token\"" >> .env echo "refresh_token=\"$refresh_token\"" >> .env fi current_pot_value=$(echo -n $pots | jq ".pots[] | select(.id==\"$pot_id\") | .balance")