validate-indentation: expand check to also catch macros.install_packages

Fixed up 5 Dockerfile.j2 files that had the issue

Change-Id: I8a5551050a75d64712c36d53573437a18777a82f
This commit is contained in:
Jon Schlueter 2018-07-26 14:50:39 -04:00
parent 778f6dc823
commit 2b023ba13e
6 changed files with 12 additions and 6 deletions

View File

@ -8,6 +8,12 @@ for dockerfile in "$@"; do
grep -E '^\s+[[:upper:]]+\s+' "$dockerfile" grep -E '^\s+[[:upper:]]+\s+' "$dockerfile"
RES=1 RES=1
fi 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 done
exit $RES exit $RES