debian-mirror-gitlab/scripts/lint-yaml.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
253 B
Bash
Raw Normal View History

2022-07-23 23:45:48 +05:30
#!/usr/bin/env bash
set -euo pipefail
if ! command -v yamllint > /dev/null; then
echo "ERROR: yamllint is not installed. For more information, see https://yamllint.readthedocs.io/en/stable/index.html."
exit 1
fi
yamllint --strict -f colored "$@"