From c89a03c037accdce942058d10d0744dcc934b094 Mon Sep 17 00:00:00 2001 From: chee Date: Fri, 21 Jun 2019 15:03:50 +0000 Subject: [PATCH] correct the error message --- run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run b/run index 643a931..aec2583 100755 --- a/run +++ b/run @@ -3,7 +3,7 @@ source .env dedupe_id=$RANDOM-amonzo-expronzo pots=$(http "https://api.monzo.com/pots" "Authorization: Bearer $access_token" ) code=$(echo -n $pots | jq -r .code) -if [ "$code" == "unauthorized.auth_required" ]; then +if [ "$code" == "unauthorized.bad_access_token.expired" ]; then if [ -z "$refresh_token" ]; then echo 'BAD POPO: $access_token expired and no $refresh_token, gotta get gint' exit 1