mirror of
https://github.com/wled/WLED.git
synced 2025-07-16 15:26:31 +00:00
Update tools/wled-tools
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
bc099baeb1
commit
5203c3927f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user