summaryrefslogtreecommitdiff
path: root/licensecheck/checkfile.sh
blob: 2de49fe0675187ea9f1dac2e7041c3899d6bc8fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash

export name="$3"
export name=${name##../../client-data/}

grep "$name" $1 >/dev/null
if [ "$?" != 0 ]; then
    grep "$name " $2 >/dev/null
    if [ "$?" != 0 ]; then
        echo "Missing license for $name"
    fi
fi