kolla/tools/validate-maintainer.sh
Martin André 5ed1c04c98 Fix validate-maintainer.sh script
The script wasn't reporting any errors due to a typo.
Also fix MAINTAINER field for ceilometer-collector image.

Change-Id: Idf1e2746ae395bb05ee679ca71a10a3f103ebfa8
2015-01-19 16:51:22 +09:00

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