summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJon Schlueter <jschluet@redhat.com>2018-06-21 14:48:22 -0400
committerJon Schlueter <jschluet@redhat.com>2018-06-21 14:51:19 -0400
commitb7c0f053b0e0e4b48a2cd69fce0096d106a8d219 (patch)
treefe8b34b1843546ce01b968bf7ca5f5946b88b503 /tools
parentd8c7d1b27cf53ee0d4f0e1e0639aaea635a2d0ec (diff)
downloadkolla-b7c0f053b0e0e4b48a2cd69fce0096d106a8d219.tar.gz
kolla-b7c0f053b0e0e4b48a2cd69fce0096d106a8d219.zip
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
Diffstat (limited to 'tools')
-rwxr-xr-xtools/validate-indentation.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/validate-indentation.sh b/tools/validate-indentation.sh
index de2f20c6f..f651e152b 100755
--- a/tools/validate-indentation.sh
+++ b/tools/validate-indentation.sh
@@ -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