mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-29 01:42:19 +00:00
15 lines
348 B
Bash
Executable file
15 lines
348 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -uo pipefail
|
|
|
|
has_file=false
|
|
has_file_outside_src=false
|
|
while IFS= read -r file || [ -n "$file" ]; do
|
|
[ -n "$file" ] || continue
|
|
has_file=true
|
|
case "$file" in
|
|
src/*) ;;
|
|
*) has_file_outside_src=true ;;
|
|
esac
|
|
done
|
|
|
|
{ [ "$has_file" = true ] && [ "$has_file_outside_src" = false ]; } && echo related || echo full
|