2019-01-17 12:39:15 +01:00
|
|
|
#!/bin/bash
|
2019-01-24 11:11:08 +01:00
|
|
|
# run-shellcheck
|
|
|
|
# usage : $0 [shell script to check]
|
|
|
|
# called without arguments, il will shellcheck any *.sh file found in the project
|
2019-01-17 12:39:15 +01:00
|
|
|
set -e
|
|
|
|
|
|
|
|
dockerfile="$(dirname "$0")/Dockerfile.shellcheck"
|
|
|
|
docker build -f "$dockerfile" -t debiancis-shellcheck "$(dirname "$0")"/../
|
|
|
|
docker run --rm debiancis-shellcheck "$@"
|