Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit 9fe0963

Browse files
committed
[FAB-5948] Fix check_license script error
Change-Id: Ia9dc73c705b41be5cfefb851bcb07e2f8e9653f7 Signed-off-by: Troy Ronda <troy@troyronda.com>
1 parent 7570207 commit 9fe0963

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/scripts/check_license.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ if [[ -z "$CHECK" ]]; then
2121
filterExcludedFiles
2222
fi
2323

24+
if [[ -z "$CHECK" ]]; then
25+
echo "All files are excluded from having SPDX-License-Identifier headers"
26+
exit 0
27+
fi
28+
2429
echo "Checking committed files for SPDX-License-Identifier headers ..."
2530
missing=`echo "$CHECK" | xargs ls -d 2>/dev/null | xargs grep -L "SPDX-License-Identifier"`
2631
if [[ -z "$missing" ]]; then

0 commit comments

Comments
 (0)