This repository provides an automated build for a Apline with shellcheck Docker image.
Build the Docker image locally
docker build -t alastairhm/shellcheck .
To check the files one.sh
and two.sh
in your current directory:
docker run --rm -v "$PWD:/mnt" ghcr.io/alastairhm/shellcheck:master ./one.sh ./two.sh
Or setup an alias
alias shellcheck='docker run --rm -v "$PWD:/mnt" ghcr.io/alastairhm/shellcheck:master