mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2024-12-22 07:35:50 +02:00
Handle whitespace in comma separated components
This commit is contained in:
parent
123acc0c06
commit
8fb5bc3133
1 changed files with 3 additions and 1 deletions
|
@ -25,7 +25,9 @@ runs:
|
|||
run: echo "::set-output name=flag::${{inputs.target && ' --target '}}${{inputs.target}}"
|
||||
shell: bash
|
||||
- id: components
|
||||
run: echo "::set-output name=flag::${{inputs.components && ' --component '}}${{inputs.components}}"
|
||||
run: echo "::set-output name=flag::$(for c in ${components//,/ }; do echo -n ' --component' $c; done)"
|
||||
env:
|
||||
components: ${{inputs.components}}
|
||||
shell: bash
|
||||
- name: rustup toolchain install ${{inputs.toolchain}}
|
||||
run: rustup toolchain install ${{inputs.toolchain}}${{steps.target.outputs.flag}}${{steps.components.outputs.flag}} --profile minimal --no-self-update
|
||||
|
|
Loading…
Reference in a new issue