diff --git a/Scripts/developer_scripts/detect_packages_licenses b/Scripts/developer_scripts/detect_packages_licenses index 4de2ca84b08..3cf1d17983c 100755 --- a/Scripts/developer_scripts/detect_packages_licenses +++ b/Scripts/developer_scripts/detect_packages_licenses @@ -12,7 +12,7 @@ for p in ^*build*(/); do l=`licensecheck -r $p/include $p/src | awk -F': ' '{print $2}' | grep -v BSL | sed -e 's/GENERATED FILE//' | sort -u` if [ "x`echo $l | wc -l`" = "x1" ]; then echo $l > "$licFile" - elif [ -z "`echo $l | grep -Eq '^L?GPL \(v3 or later\) *$'`" ]; then + elif [ -z "`echo $l | grep -Ev '^L?GPL \(v3 or later\) *$'`" ]; then echo 'GPL (v3 or later) ' > "$licFile" else echo "MULTIPLE!" > "$licFile";