File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -196,22 +196,22 @@ __gradle-trim-tasks-to-subprojects() {
196
196
} else {
197
197
current = arr[c-1] ":"
198
198
}
199
- # keep uniq names (assuming that the input to this funtion is already sorted)
200
- if (mt == 0 || current != module_task[mt -1]) {
201
- module_task[mt ++] = current
199
+ # keep uniq names (it assumes that the input to this funtion is already sorted)
200
+ if (m == 0 || current != module[m -1]) {
201
+ module[m ++] = current
202
202
}
203
203
module_task_line[mtl++] = $0
204
204
} else {
205
205
# otherwise store the whole line with description
206
- root_task_line[rt ++] = $0
206
+ root_task_line[rtl ++] = $0
207
207
}
208
208
} END {
209
- for(i=0; i<rt ; i++) {
209
+ for(i=0; i<rtl ; i++) {
210
210
print root_task_line[i]
211
211
}
212
- if (mt > 1) {
213
- for(i=0; i<mt ; i++) {
214
- print module_task [i]
212
+ if (m > 1) {
213
+ for(i=0; i<m ; i++) {
214
+ print module [i]
215
215
}
216
216
} else {
217
217
# at most 1 subproject is choosen, show possible tasks
You can’t perform that action at this time.
0 commit comments