#!/bin/bash # # SPDX-License-Identifier: GPL-2.0-only # # Called within the build directory for x in `find ./tmp/deploy/licenses -name "license.manifest"`; do cat $x|grep -E "GPLv3|GPL-3"; done | grep -v '|' if [ $? = 1 ]; then echo "GPLv3 components not found" exit 0 fi echo "GPLv3 components found" exit 1