From 62cef2ee67382bd542e121a927bace381b0e42d1 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Thu, 30 Jan 2025 17:01:56 +0100 Subject: [PATCH] [API] update build.func --- misc/build.func | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/misc/build.func b/misc/build.func index 13f1c8b7..c591e506 100644 --- a/misc/build.func +++ b/misc/build.func @@ -73,6 +73,7 @@ error_handler() { local exit_code="$?" local line_number="$1" local command="$2" + post_update_to_api "failed" local error_message="${RD}[ERROR]${CL} in line ${RD}$line_number${CL}: exit code ${RD}$exit_code${CL}: while executing command ${YW}$command${CL}" echo -e "\n$error_message\n" } @@ -829,26 +830,31 @@ EOF } -post_update_to_api() { - local API_URL="http://api.community-scripts.org/upload/updatestatus" +POST_UPDATE_DONE=false - JSON_PAYLOAD=$(cat <