2015-04-27 11:59:55 +08:00
|
|
|
#!/bin/bash
|
2014-10-22 11:12:50 -04:00
|
|
|
|
2015-01-15 15:55:09 +09:00
|
|
|
MAINTAINER='MAINTAINER Kolla Project (https://launchpad.net/kolla)'
|
2014-10-22 11:12:50 -04:00
|
|
|
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
|
|
|
|
|