#!/bin/sh # script/lint: run the linter, in docker only, by building Dockerfile.lint; # the build fails on any finding. --no-cache makes every run execute the # linter: a cached build of an unchanged tree succeeds without linting # anything. --output type=cacheonly keeps no image. set -eu ROOT="$(cd "$(dirname "$0")/.." && pwd -P)" main() { cd "$ROOT" docker build --no-cache --output type=cacheonly -f Dockerfile.lint . } main "$@"