kolla/tools/validate-indentation.sh

13 lines
209 B
Bash
Executable File

#!/bin/bash
RES=0
for dockerfile in "$@"; do
if grep -qE '^\s+[A-Z]+\s' "$dockerfile"; then
echo "ERROR: $dockerfile has indented Dockerfile instruction" >&2
RES=1
fi
done
exit $RES