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:
parent
778f6dc823
commit
2b023ba13e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue