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

export name="$3"
export name=${name##../../clientdata/}

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