aboutsummaryrefslogtreecommitdiff
path: root/tools/validate-install-command.sh
blob: bc74096902814c6939516e73b7162203b0294897 (plain)
1
2
3
4
5
6
7
8
9
10
11
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