diff options
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/validate-indentation.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/validate-indentation.sh b/tools/validate-indentation.sh index f651e152b..5fc1057cf 100755 --- a/tools/validate-indentation.sh +++ b/tools/validate-indentation.sh @@ -8,6 +8,12 @@ for dockerfile in "$@"; do grep -E '^\s+[[:upper:]]+\s+' "$dockerfile" RES=1 fi + + if grep -qE '^\s+\{\{ macros\.install_packages' "$dockerfile"; then + echo "ERROR: $dockerfile has indented Dockerfile instruction" >&2 + grep -E '^\s+\{\{ macros\.install_packages' "$dockerfile" + RES=1 + fi done exit $RES |
