diff options
Diffstat (limited to 'CI/licensecheck/checkfile.sh')
-rwxr-xr-x | CI/licensecheck/checkfile.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/CI/licensecheck/checkfile.sh b/CI/licensecheck/checkfile.sh new file mode 100755 index 0000000..2de49fe --- /dev/null +++ b/CI/licensecheck/checkfile.sh @@ -0,0 +1,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 |