From 1d23c4c33c61813bbda5341c51c564a9c0f59f93 Mon Sep 17 00:00:00 2001 From: Mikhail Epatko Date: Wed, 6 Mar 2024 21:40:29 +0300 Subject: [PATCH] =?UTF-8?q?#9=20Fixed=20SC2086=20=E2=80=93=20ShellCheck?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 2 +- generate-badge.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9fd9702..803476d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ on: [push] jobs: tests_job: - name: Shellcheck + name: Test scripts runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 diff --git a/generate-badge.sh b/generate-badge.sh index 38c1b6b..46a5c39 100755 --- a/generate-badge.sh +++ b/generate-badge.sh @@ -22,11 +22,11 @@ while getopts 'b:d:e:f:o:s:' opt; do Since="$OPTARG" ;; :) - echo "Usage: $(basename $0) [-b Before] [-d Dir] [-e Exclude] [-f Filename] [-o OutputDir] [-s Since]" + echo "Usage: $(basename "$0") [-b Before] [-d Dir] [-e Exclude] [-f Filename] [-o OutputDir] [-s Since]" exit 1 ;; ?) - echo "Usage: $(basename $0) [-b Before] [-d Dir] [-e Exclude] [-f Filename] [-o OutputDir] [-s Since]" + echo "Usage: $(basename "$0") [-b Before] [-d Dir] [-e Exclude] [-f Filename] [-o OutputDir] [-s Since]" exit 1 ;; esac