From ecbc472dc351e14a4480eb597dae0c08c1c5f90f Mon Sep 17 00:00:00 2001 From: Alexander Eimer Date: Mon, 23 Oct 2023 16:20:52 +0200 Subject: [PATCH] fix: ci --- .ci-scripts/generate-aliases.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci-scripts/generate-aliases.sh b/.ci-scripts/generate-aliases.sh index c901e6d..bc059c4 100755 --- a/.ci-scripts/generate-aliases.sh +++ b/.ci-scripts/generate-aliases.sh @@ -12,7 +12,7 @@ yq --version >/dev/null || { tmpDir="/tmp/parsed-formula" -aliasesCountBefore=$((ls -1 Aliases/*.rb 2>/dev/null || true) | wc -l | tr -d ' ') +aliasesCountBefore=$( (ls -1 Aliases/*.rb 2>/dev/null || true) | wc -l | tr -d ' ') echo "Found $aliasesCountBefore aliases beforehand" # TODO: Use search for symlinks and delete instead of plain rm @@ -31,5 +31,5 @@ for formulaVersionsFile in "$tmpDir"/*.yaml; do # TODO: Set Majors.Minors => $formulaName@$major.$minor.rb done -aliasesCountAfter=$((ls -1 Aliases/*.rb 2>/dev/null || true) | wc -l | tr -d ' ') +aliasesCountAfter=$( (ls -1 Aliases/*.rb 2>/dev/null || true) | wc -l | tr -d ' ') echo "Found $aliasesCountAfter aliases afterwards -- a change of $((aliasesCountAfter - aliasesCountBefore))"