Skip to content

Commit cc9dc77

Browse files
committed
Tag in case of v1.x lib update
1 parent 02860e6 commit cc9dc77

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

example/tools/ota/ota_mass_upload.sh

+8
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,14 @@ otaids=$(echo $otastartedout | jq -r '.[] | .OtaStatus | .id' | uniq | paste -sd
115115

116116
if [ $otaids == "null" ]; then
117117
echo "No OTA processes to monitor. This could be due to an upgrade from previous ArduinoIotLibrary versions. Exiting..."
118+
if [ "$newtagversion" != "" ]; then
119+
otasucceeded=$(echo $devicelistjson | jq -r '.[] | .id' | uniq | paste -sd "," -)
120+
echo ""
121+
echo "Tag updated devices as \"$newtagversion\""
122+
arduino-cloud-cli device create-tags --ids $otasucceeded --tags $newtagversion
123+
echo ""
124+
arduino-cloud-cli device list --tags $newtagversion
125+
fi
118126
exit 0
119127
fi
120128

0 commit comments

Comments
 (0)