File tree Expand file tree Collapse file tree 1 file changed +28
-6
lines changed Expand file tree Collapse file tree 1 file changed +28
-6
lines changed Original file line number Diff line number Diff line change 86
86
"${type}"/gencode-local \
87
87
"${type}"/gencode-remote
88
88
do
89
- test -e "${c}" || continue
90
-
91
- shellcheck ${SHELLCHECKOPTS-} "${c}" || rc=1
89
+ set --
90
+ if test -d "${c}"
91
+ then
92
+ if test -f "${c}/init"
93
+ then
94
+ set -- "$@" "${c}/init"
95
+ else
96
+ set -- "$@" "${c}"/*
97
+ fi
98
+ elif test -f "${c}"
99
+ then
100
+ set -- "$@" "${c}"
101
+ fi
102
+ shellcheck ${SHELLCHECKOPTS-} "$@" || rc=1
92
103
done
93
104
94
105
if test -d "${type}/explorer"
@@ -169,9 +180,20 @@ jobs:
169
180
"${type}"/gencode-local \
170
181
"${type}"/gencode-remote
171
182
do
172
- test -e "${c}" || continue
173
-
174
- shellcheck -f gcc ${SHELLCHECKOPTS-} "${c}" \
183
+ set --
184
+ if test -d "${c}"
185
+ then
186
+ if test -f "${c}/init"
187
+ then
188
+ set -- "$@" "${c}/init"
189
+ else
190
+ set -- "$@" "${c}"/*
191
+ fi
192
+ elif test -f "${c}"
193
+ then
194
+ set -- "$@" "${c}"
195
+ fi
196
+ shellcheck -f gcc ${SHELLCHECKOPTS-} "$@" \
175
197
| proc_shellcheck_output \
176
198
|| rc=1
177
199
done
You can’t perform that action at this time.
0 commit comments