mirror of
https://github.com/ovh/debian-cis.git
synced 2024-11-24 14:31:24 +01:00
10 lines
325 B
Bash
Executable File
10 lines
325 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 "$@"
|