kolla/tools/validate-maintainer.sh

15 lines
265 B
Bash
Executable File

#!/bin/sh
MAINTAINER='MAINTAINER Kolla Project (https://launchpad.net/kolla)'
RES=0
for dockerfile in "$@"; do
if ! grep -q "$MAINTAINER" "$dockerfile"; then
echo "ERROR: $dockerfile has incorrect MAINTAINER" >&2
RES=1
fi
done
exit $RES