From e42ae956008d481cbf14ba2ad1885ecb30e2a8df Mon Sep 17 00:00:00 2001 From: Mikhail Epatko Date: Wed, 6 Mar 2024 21:45:44 +0300 Subject: [PATCH] =?UTF-8?q?#9=20Fixed=20SC2140=20=E2=80=93=20ShellCheck?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- action.yml | 2 +- generate-badge.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index a23155d..8653eed 100644 --- a/action.yml +++ b/action.yml @@ -42,7 +42,7 @@ runs: -s $SINCE \ -o $OUTPUT_DIR \ -f $FILENAME \ - ${$EXCLUDE:+"-e" "${$EXCLUDE[@]}"} + ${$EXCLUDE:+"-e ${$EXCLUDE[@]}"} shell: bash env: BEFORE: ${{ inputs.before }} diff --git a/generate-badge.sh b/generate-badge.sh index 46a5c39..a0cdb75 100755 --- a/generate-badge.sh +++ b/generate-badge.sh @@ -38,7 +38,7 @@ echo "$Dir ${Exclude[*]} $Since $Before" mkdir -p "$OutDir" -Count=$(hoc -d "$Dir" ${Exclude:+"-e" "${Exclude[@]}"} -e "${Exclude[@]}" -s "$Since" -b "$Before" -f "int") +Count=$(hoc -d "$Dir" ${Exclude:+"-e ${Exclude[@]}"} -e "${Exclude[@]}" -s "$Since" -b "$Before" -f "int") echo "Hits of code: $Count" anybadge -l "Hits of Code" -v "$Count" -f "$OutDir/$Filename" -c royalblue