kolla/tools/validate-install-command.sh
Mark Goddard 7889782113 CentOS 8: Switch last mentions of yum to dnf
Change-Id: I31e9742793cfb1abff9749083c9ce86000dae1af
Partially-Implements: blueprint centos-rhel-8
2020-04-15 14:17:40 +01:00

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