File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -138,16 +138,20 @@ echo ""
138
138
echo " Status report:"
139
139
arduino-cloud-cli ota status --ota-ids $otaids
140
140
141
+ exitcode=0
141
142
if [ $correctlyfinished -eq 0 ]; then
142
143
echo " OTA process did not complete within the specified time for some boards"
143
- exit 1
144
+ exitcode= 1
144
145
else
145
146
echo " OTA process completed successfully for all boards"
146
- if [ " $newtagversion " != " " ]; then
147
- echo " Tagging updated devices with tag: $newtagversion "
148
- arduino-cloud-cli device create-tags --ids $otasucceeded --tags $newtagversion
149
- fi
150
- exit 0
151
147
fi
152
148
153
- exit 0
149
+ if [ " $newtagversion " != " " ]; then
150
+ echo " "
151
+ echo " Tag updated devices as \" $newtagversion \" "
152
+ arduino-cloud-cli device create-tags --ids $otasucceeded --tags $newtagversion
153
+ echo " "
154
+ arduino-cloud-cli device list --tags $newtagversion
155
+ fi
156
+
157
+ exit $exitcode
You can’t perform that action at this time.
0 commit comments