From ea43e07d3f4a589e17b15a841d207f83e50c62c2 Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Sun, 17 Mar 2024 16:02:34 +0300 Subject: [PATCH] #1 while --- entry.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/entry.sh b/entry.sh index e91ced3..5b18028 100755 --- a/entry.sh +++ b/entry.sh @@ -29,4 +29,8 @@ cd "${GITHUB_WORKSPACE-/w}" read -r -a opts <<< "${INPUT_OPTS}" -find . -name '*.bib' -exec bibcop.pl "${opts[@]}" {} \; +bibs=$(find . -name '*.bib') + +echo "${bibs}" | while IFS= read -r bib; do + bibcop.pl "${opts[@]}" "${bib}" +done