debian-cis/shellcheck/docker_build_and_run_shellcheck.sh
Charles Herlin d2e456b7d8 IMP: new tag in file to tell that the script should pass shellcheck
The `# run-shellchek` tag must be placed in the first 10 lines of the
file
2019-01-24 11:45:31 +01:00

11 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 "$@"