We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc099ba commit 5203c39Copy full SHA for 5203c39
tools/wled-tools
@@ -135,7 +135,13 @@ update_one() {
135
local url="http://$address:$port/update"
136
local curl_command="curl -s -X POST -F "file=@$firmware" "$url""
137
138
- curl_handler "$curl_command" "$hostname"
+ if ! curl_handler "$curl_command" "$hostname"; then
139
+ log "ERROR" "$RED" "Failed to update firmware for $hostname"
140
+ return 1
141
+ fi
142
+
143
+ log "INFO" "$GREEN" "Successfully initiated firmware update for $hostname"
144
+ return 0
145
}
146
147
# Command-line arguments processing
0 commit comments