Skip to content

Commit

Permalink
#1 check for emptiness
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Mar 17, 2024
1 parent 82ce863 commit 52491fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions entry.sh
Expand Up @@ -31,6 +31,11 @@ read -r -a opts <<< "${INPUT_OPTS}"

bibs=$(find . -name '*.bib')

if [ -z "${bibs}" ]; then
echo "There are no .bib files in the repository"
exit
fi

echo "${bibs}" | while IFS= read -r bib; do
bibcop.pl "${opts[@]}" "${bib}"
done

0 comments on commit 52491fb

Please sign in to comment.