Skip to content

Commit bdde9d9

Browse files
committed
Better log
1 parent 6b68536 commit bdde9d9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tools/ota/ota_mass_upload.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ fi
6666

6767
otaids=$(echo $otastartedout | jq -r '.[] | .OtaStatus | .id' | uniq | paste -sd "," -)
6868

69-
echo "IDS: $otaids"
70-
7169
while [ $waittime -gt 0 ]; do
7270
echo "Waiting for $waittime seconds for OTA process to complete..."
7371
sleep 15
@@ -85,7 +83,10 @@ arduino-cloud-cli ota status --ota-ids $otaids
8583

8684
if [ $waittime -le 0 ]; then
8785
echo "OTA process did not complete within the specified time for some boards"
88-
exit 1
86+
exit 1
87+
else
88+
echo "OTA process completed successfully for all boards"
89+
exit 0
8990
fi
9091

9192
exit 0

0 commit comments

Comments
 (0)