Update tools/wled-tools

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Michael Bisbjerg 2025-04-06 01:11:20 +02:00 committed by GitHub
parent bc099baeb1
commit 5203c3927f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -135,7 +135,13 @@ update_one() {
local url="http://$address:$port/update"
local curl_command="curl -s -X POST -F "file=@$firmware" "$url""
curl_handler "$curl_command" "$hostname"
if ! curl_handler "$curl_command" "$hostname"; then
log "ERROR" "$RED" "Failed to update firmware for $hostname"
return 1
fi
log "INFO" "$GREEN" "Successfully initiated firmware update for $hostname"
return 0
}
# Command-line arguments processing