Skip to content

Commit

Permalink
[FAB-5948] Fix check_license script error
Browse files Browse the repository at this point in the history
Change-Id: Ia9dc73c705b41be5cfefb851bcb07e2f8e9653f7
Signed-off-by: Troy Ronda <troy@troyronda.com>
  • Loading branch information
troyronda committed Aug 29, 2017
1 parent 7570207 commit 9fe0963
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/scripts/check_license.sh
Expand Up @@ -21,6 +21,11 @@ if [[ -z "$CHECK" ]]; then
filterExcludedFiles
fi

if [[ -z "$CHECK" ]]; then
echo "All files are excluded from having SPDX-License-Identifier headers"
exit 0
fi

echo "Checking committed files for SPDX-License-Identifier headers ..."
missing=`echo "$CHECK" | xargs ls -d 2>/dev/null | xargs grep -L "SPDX-License-Identifier"`
if [[ -z "$missing" ]]; then
Expand Down

0 comments on commit 9fe0963

Please sign in to comment.