Skip to content

Commit 75535d3

Browse files
committed
check: make sure .envrc is part of shellcheck
.envrc is also a shell script.
1 parent 484214f commit 75535d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/check

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ run_icons() {
291291

292292
run_shellcheck() {
293293
# Omitted from this check: nothing (nothing known, anyway).
294-
files_check tools/ '!*.'{dart,js,json} \
294+
files_check tools/ '!*.'{dart,js,json} .envrc \
295295
|| return 0
296296

297297
# Shellcheck is fast, <1s; so if we touched any possible targets at all,
@@ -300,6 +300,7 @@ run_shellcheck() {
300300
targets=(
301301
$(git grep -l '#!.*sh\b' -- tools/)
302302
$(git ls-files -- tools/'*.sh')
303+
.envrc
303304
)
304305

305306
if ! type shellcheck >/dev/null 2>&1; then

0 commit comments

Comments
 (0)