You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
7
6
8
7
variables() {
9
8
NSAPP=$(echo ${APP,,} | tr -d ' ') # This function sets the NSAPP variable by converting the value of the APP variable to lowercase and removing any spaces.
@@ -73,7 +72,6 @@ error_handler() {
73
72
local exit_code="$?"
74
73
local line_number="$1"
75
74
local command="$2"
76
-
post_update_to_api "failed"
77
75
local error_message="${RD}[ERROR]${CL} in line ${RD}$line_number${CL}: exit code ${RD}$exit_code${CL}: while executing command ${YW}$command${CL}"
78
76
echo -e "\n$error_message\n"
79
77
}
@@ -794,6 +792,9 @@ advanced_settings() {
794
792
}
795
793
796
794
post_to_api() {
795
+
if [ "$DIAGNOSTICS" = "no" ]; then
796
+
return 0
797
+
fi
797
798
local API_URL="http://api.community-scripts.org/upload"
0 commit comments