From 5b7b40c2efff79e8eb96717a27fe9b490faccb8e Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 2 Jul 2019 16:15:52 +0200 Subject: [PATCH] We expect a 201 here. --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index f4a5809..61a077e 100644 --- a/.bashrc +++ b/.bashrc @@ -168,7 +168,7 @@ pasee() local HTTP_RESPONSE="$(<$TEMP_DIR/stdout)" local STATUS_CODE="$(<$TEMP_DIR/stderr)" JWT="$(jq -r ".access_token" <<< "$HTTP_RESPONSE")" - if [[ -z "$JWT" || "$STATUS_CODE" != "200" || "$JWT" == "null" ]]; then + if [[ -z "$JWT" || "$STATUS_CODE" != "201" || "$JWT" == "null" ]]; then printf "HTTP Error %s: %s\n" "$STATUS_CODE" "$HTTP_RESPONSE" fi AUTH="Authorization: Bearer $JWT"