2016-05-17 15:39:25 +05:30
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
RES=0
|
|
|
|
|
|
|
|
for dockerfile in "$@"; do
|
2020-03-16 15:16:31 +00:00
|
|
|
if grep "apt-get install\|dnf install" "$dockerfile"; then
|
|
|
|
echo "ERROR: $dockerfile has incorrectly formatted install command Should be in the form 'apt-get|dnf -y install ...'" >&2
|
2016-05-17 15:39:25 +05:30
|
|
|
RES=1
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
exit $RES
|