mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-07-05 16:12:30 +00:00
22 lines
534 B
Bash
22 lines
534 B
Bash
![]() |
#!/usr/bin/env bash
|
||
|
|
||
|
REQUIREMENTS_FILES=$(find requirements -type f -name "*.txt" \
|
||
|
-name "extra-pdf-image.in" \
|
||
|
! -name "extra-pdf-image.txt" \
|
||
|
! -name "constraints.txt" \
|
||
|
! -name "dev.txt")
|
||
|
|
||
|
for REQUIREMENTS_FILE in $REQUIREMENTS_FILES; do
|
||
|
echo "Checking $REQUIREMENTS_FILE"
|
||
|
liccheck -r "$REQUIREMENTS_FILE"
|
||
|
EXIT_CODE=$?
|
||
|
if [ "$EXIT_CODE" -eq 0 ]; then
|
||
|
echo "All dependencies have authorized licenses."
|
||
|
else
|
||
|
echo "There are dependencies with unauthorized or unknown licenses."
|
||
|
exit 1
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
exit 0
|