@@ -243,6 +243,7 @@ get_api_status() {
|
|||||||
jq -r '.status.code, .status.message'
|
jq -r '.status.code, .status.message'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# This quickly checks if the variable contains an integer or not (which is good enough here)
|
||||||
printf -v _ '%d' "$api_status" || {
|
printf -v _ '%d' "$api_status" || {
|
||||||
err "Got invalid status from the api: $api_status"
|
err "Got invalid status from the api: $api_status"
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user