b7c0f053b0
grep -E '^\s+[A-Z]+\s' was matching any " a " " FOO " where this was trying to only catch " FOO " case Change-Id: Ife64cb9f02b3f1463d5143e57629418bc478de49
14 lines
268 B
Bash
Executable File
14 lines
268 B
Bash
Executable File
#!/bin/bash
|
|
|
|
RES=0
|
|
|
|
for dockerfile in "$@"; do
|
|
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
|
|
|
|
exit $RES
|