Skip to content

Commit

Permalink
ci: add shfmt flags (#498)
Browse files Browse the repository at this point in the history
* ci: add shfmt flags

* chore: indent 2 space

* chore: elif
  • Loading branch information
jiro4989 authored Jul 8, 2024
1 parent 1b7e243 commit 54dd991
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: reviewdog/action-shfmt@v1
with:
shfmt_flags: -i 2 -sr -ci -d

shellcheck:
name: runner / shellcheck
Expand Down
6 changes: 2 additions & 4 deletions install_nim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,8 @@ fi

# get exact version of stable
if [[ "$nim_version" = "stable" ]]; then
nim_version=$(curl -sSL https://nim-lang.org/channels/stable)
fi

if [[ "$nim_version" =~ ^[0-9]+\.[0-9]+\.x$ ]] || [[ "$nim_version" =~ ^[0-9]+\.x$ ]]; then
nim_version=$(curl -sSL https://nim-lang.org/channels/stable)
elif [[ "$nim_version" =~ ^[0-9]+\.[0-9]+\.x$ ]] || [[ "$nim_version" =~ ^[0-9]+\.x$ ]]; then
nim_version="$(fetch_tags | grep -E "$(tag_regexp "$nim_version")" | latest_version)"
fi

Expand Down

0 comments on commit 54dd991

Please sign in to comment.