2015-04-27 11:59:55 +08:00
|
|
|
#!/bin/bash
|
2014-10-22 11:12:50 -04:00
|
|
|
|
2017-04-18 17:20:03 +09:00
|
|
|
MAINTAINER='LABEL maintainer="{{ maintainer }}"'
|
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
|