From 2b023ba13ef0f11757fef029a4a6ed5a2468700e Mon Sep 17 00:00:00 2001 From: Jon Schlueter Date: Thu, 26 Jul 2018 14:50:39 -0400 Subject: validate-indentation: expand check to also catch macros.install_packages Fixed up 5 Dockerfile.j2 files that had the issue Change-Id: I8a5551050a75d64712c36d53573437a18777a82f --- tools/validate-indentation.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools') 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 -- cgit v1.2.3