Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Declare and assign variable separately in setup script
Coverage of `readonly` was added to ShellCheck rule SC2155: https://github.com/koalaman/shellcheck/wiki/SC2155#problematic-code-in-the-case-of-readonly > ### Problematic code in the case of `readonly`: > > ```sh > readonly foo="$(mycmd)" > ``` > > #### Correct code: > > ```sh > foo="$(mycmd)" > readonly foo > ``` There was this sort of "problematic code" in the action setup script, which caused the "Lint shell scripts" CI workflow to start failing after the 0.7.2 release of ShellCheck. The script's usage of `readonly` is now adjusted according to ShellCheck's recommendation.
- Loading branch information