7889782113
Change-Id: I31e9742793cfb1abff9749083c9ce86000dae1af Partially-Implements: blueprint centos-rhel-8
13 lines
278 B
Bash
Executable File
13 lines
278 B
Bash
Executable File
#!/bin/bash
|
|
|
|
RES=0
|
|
|
|
for dockerfile in "$@"; do
|
|
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
|
|
RES=1
|
|
fi
|
|
done
|
|
|
|
exit $RES
|