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

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

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