Skip to content

Commit 7e703d2

Browse files
committed
added something to chek if folder is empty
1 parent 76611e6 commit 7e703d2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/scripts/compare_vendordeps.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ def main(project_folder, library_folder):
1414

1515
missing_from_project = library_files - project_files
1616

17+
if not library_files:
18+
print("ERROR: The library folder is empty.")
19+
sys.exit(3)
20+
21+
1722
if missing_from_project:
1823
print(f"ERROR: The following vendordep files exist in the library but are missing from the project:")
1924
for f in sorted(missing_from_project):

0 commit comments

Comments
 (0)