validate-indentation was failing locally for me
grep -E '^\s+[A-Z]+\s' was matching any
" a "
" FOO "
where this was trying to only catch " FOO " case
Change-Id: Ife64cb9f02b3f1463d5143e57629418bc478de49
(cherry picked from commit b7c0f053b0
)
This commit is contained in:
parent
c7f70c8d9b
commit
b15a58ce9b
|
@ -3,8 +3,9 @@
|
|||
RES=0
|
||||
|
||||
for dockerfile in "$@"; do
|
||||
if grep -qE '^\s+[A-Z]+\s' "$dockerfile"; then
|
||||
if grep -qE '^\s+[[:upper:]]+\s+' "$dockerfile"; then
|
||||
echo "ERROR: $dockerfile has indented Dockerfile instruction" >&2
|
||||
grep -E '^\s+[[:upper:]]+\s+' "$dockerfile"
|
||||
RES=1
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue