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 <