e8ae07c2e8
The `# run-shellchek` tag must be placed in the first 10 lines of the file
10 lines
326 B
Bash
Executable file
10 lines
326 B
Bash
Executable file
#!/bin/bash
|
|
# run-shellcheck
|
|
# usage : $0 [shell script to check]
|
|
# called without arguments, il will shellcheck any *.sh file found in the project
|
|
set -e
|
|
|
|
dockerfile="$(dirname "$0")/Dockerfile.shellcheck"
|
|
docker build -f "$dockerfile" -t debiancis-shellcheck "$(dirname "$0")"/../
|
|
docker run --rm debiancis-shellcheck "$@"
|
|
|