From be34a038f99447556e20652971535aa19b766178 Mon Sep 17 00:00:00 2001 From: Luca Di Maio Date: Wed, 1 May 2024 18:50:53 +0200 Subject: [PATCH] CI: use shell-funcheck Signed-off-by: Luca Di Maio --- .github/workflows/main.yml | 14 ++++++++++++++ distrobox-assemble | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 71206ee07f..c55dff5569 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -137,3 +137,17 @@ jobs: - uses: codespell-project/actions-codespell@v2 with: skip: .git,*.pdf,*.1,*.css,*.lock + + shell-funcheck: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Run shell-funcheck + run: | + curl -L -O https://github.com/89luca89/shell-funcheck/releases/download/v0.0.1/shell-funcheck-amd64 + chmod +x ./shell-funcheck-amd64 + for i in distrobox*; do + ./shell-funcheck-amd64 check "$i" + done diff --git a/distrobox-assemble b/distrobox-assemble index 5db6b18401..eab7329aaa 100755 --- a/distrobox-assemble +++ b/distrobox-assemble @@ -472,7 +472,7 @@ sanitize_variable() { # parse_file will read and parse input file and call distrobox-create accordingly # Arguments: -# file: stirng path of the manifest file to parse +# file: string path of the manifest file to parse # Expected global variables: # tmpfile: string name of the tmpfile to read # Expected env variables: