Skip to content

Commit d8a767d

Browse files
committed
cosmetics
1 parent dfe2f3b commit d8a767d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

gradle-completion.bash

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -196,22 +196,22 @@ __gradle-trim-tasks-to-subprojects() {
196196
} else {
197197
current = arr[c-1] ":"
198198
}
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
202202
}
203203
module_task_line[mtl++] = $0
204204
} else {
205205
# otherwise store the whole line with description
206-
root_task_line[rt++] = $0
206+
root_task_line[rtl++] = $0
207207
}
208208
} END {
209-
for(i=0; i<rt; i++) {
209+
for(i=0; i<rtl; i++) {
210210
print root_task_line[i]
211211
}
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]
215215
}
216216
} else {
217217
# at most 1 subproject is choosen, show possible tasks

0 commit comments

Comments
 (0)