Change-Id: Icb47ba8b13b13889e28bb285321f11344400edc2 Closes-Bug:#1582618changes/64/317364/10
parent
b40bf517ae
commit
eb1bfc2c2e
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
RES=0
|
||||
|
||||
for dockerfile in "$@"; do
|
||||
if grep "apt-get install\|yum install" "$dockerfile"; then
|
||||
echo "ERROR: $dockerfile has incorrectly formatted install command Should be in the form 'apt-get|yum -y install ...'" >&2
|
||||
RES=1
|
||||
fi
|
||||
done
|
||||
|
||||
exit $RES
|
Loading…
Reference in new issue