From 5f3f4af66a80c1c05c24e5a89f592291e2373108 Mon Sep 17 00:00:00 2001 From: Alexander Eimer Date: Wed, 25 Oct 2023 17:19:24 +0200 Subject: [PATCH] fix: toc push --- .ci-scripts/update-toc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci-scripts/update-toc.sh b/.ci-scripts/update-toc.sh index 1ac9339..d073c3d 100755 --- a/.ci-scripts/update-toc.sh +++ b/.ci-scripts/update-toc.sh @@ -9,7 +9,7 @@ function generateToc() { while read -r file; do # shellcheck disable=SC2001 - programName=$(sed -E 's/(@.+)?\.rb//g' <<<"$file") + programName=$(cut -d@ -f1 <<<"$file") programNameList+=("$programName") done < <(find "Formula" -maxdepth 1 -type f -name '*.rb' -exec basename {} \; | sort)