summaryrefslogtreecommitdiff
path: root/CI/licensecheck/checkfile.sh
blob: d05378a3a71b8d334a7693dffff7473d0c366f05 (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