diff --git a/setup.cfg b/setup.cfg index 8ed5c8aa39..774e3e672a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -116,11 +116,8 @@ commands = description = Check spelling with shellcheck labels = lint skip_install = true -allowlist_externals = bash -commands = - bash -c "find . \( -name .git -o -name gradlew -o -name .tox -o -name .ruff_cache -o \ - -path ./tests/spread/tools/snapd-testing-tools \) -prune -o -print0 | xargs -0 file -N \ - | grep shell.script | cut -f1 -d: | xargs shellcheck" +allowlist_externals = bash, git +commands = bash -c "git ls-files | file --mime-type -Nnf- | grep shellscript | cut -f1 -d: | xargs shellcheck" [testenv:spread-shellcheck] description = Run shellcheck on spread's test.yaml files using spread-shellcheck.py diff --git a/tests/spread/plugins/v1/gradle/snaps/gradlew-hello/gradlew b/tests/spread/plugins/v1/gradle/snaps/gradlew-hello/gradlew index 27309d9231..23d6786470 100755 --- a/tests/spread/plugins/v1/gradle/snaps/gradlew-hello/gradlew +++ b/tests/spread/plugins/v1/gradle/snaps/gradlew-hello/gradlew @@ -1,5 +1,7 @@ #!/usr/bin/env bash +# shellcheck disable=all + ############################################################################## ## ## Gradle start up script for UN*X