summaryrefslogtreecommitdiff
path: root/tools/validate-maintainer.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/validate-maintainer.sh')
-rwxr-xr-xtools/validate-maintainer.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/validate-maintainer.sh b/tools/validate-maintainer.sh
new file mode 100755
index 000000000..d6bb75a84
--- /dev/null
+++ b/tools/validate-maintainer.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+MAINTANER='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
+