Tapi
This commit is contained in:
parent
949574d498
commit
1e52f338f9
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
post_to_api() {
|
post_to_api() {
|
||||||
|
|
||||||
|
echo -e "Posting to API..."
|
||||||
if ! command -v curl &> /dev/null; then
|
if ! command -v curl &> /dev/null; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
@ -42,6 +43,7 @@ EOF
|
|||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "$JSON_PAYLOAD") || true
|
-d "$JSON_PAYLOAD") || true
|
||||||
}
|
}
|
||||||
|
echo -e "Posting to API... "
|
||||||
|
|
||||||
get_error_description() {
|
get_error_description() {
|
||||||
local exit_code="$1"
|
local exit_code="$1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user