File tree 1 file changed +8
-11
lines changed
1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -159,20 +159,14 @@ remove_tag() {
159
159
git -C " $local_path " tag -d " $tagname "
160
160
}
161
161
162
- check_tags () {
163
-
164
- for project in " ${! PROJECT_TAGS[@]} " ; do
165
- if [ -z " ${PROJECT_TAGS[$project]} " ]; then
166
- echo " error: empty tag name" 1>&2
167
- exit 1
168
- fi
169
- done
170
- }
171
-
172
162
tag_all () {
173
163
# Creates all the tags in the PROJECT_TAGS array.
174
164
175
165
for project in " ${! PROJECT_TAGS[@]} " ; do
166
+ if [ -z " ${PROJECT_TAGS[$project]} " ]; then
167
+ echo " Skipping $project (not tagged)"
168
+ continue
169
+ fi
176
170
tag " $project " " ${PROJECT_TAGS[$project]} "
177
171
done
178
172
}
@@ -182,6 +176,10 @@ push_all() {
182
176
# to the main nrfconnect repositories on GitHub.
183
177
184
178
for project in " ${! PROJECT_TAGS[@]} " ; do
179
+ if [ -z " ${PROJECT_TAGS[$project]} " ]; then
180
+ echo " Skipping $project (not tagged)"
181
+ continue
182
+ fi
185
183
push_tag " $project " " ${PROJECT_TAGS[$project]} "
186
184
done
187
185
}
@@ -197,7 +195,6 @@ remove_all() {
197
195
command=" $1 "
198
196
shift
199
197
200
- check_tags
201
198
case " $command " in
202
199
tag-all)
203
200
# Create tags in all the repositories in the local working trees.
You can’t perform that action at this time.
0 commit comments