We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02860e6 commit cc9dc77Copy full SHA for cc9dc77
example/tools/ota/ota_mass_upload.sh
@@ -115,6 +115,14 @@ otaids=$(echo $otastartedout | jq -r '.[] | .OtaStatus | .id' | uniq | paste -sd
115
116
if [ $otaids == "null" ]; then
117
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
124
+ arduino-cloud-cli device list --tags $newtagversion
125
+ fi
126
exit 0
127
fi
128
0 commit comments