Handle whitespace in comma separated components
This commit is contained in:
@@ -25,7 +25,9 @@ runs:
|
|||||||
run: echo "::set-output name=flag::${{inputs.target && ' --target '}}${{inputs.target}}"
|
run: echo "::set-output name=flag::${{inputs.target && ' --target '}}${{inputs.target}}"
|
||||||
shell: bash
|
shell: bash
|
||||||
- id: components
|
- 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
|
shell: bash
|
||||||
- name: rustup toolchain install ${{inputs.toolchain}}
|
- 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
|
run: rustup toolchain install ${{inputs.toolchain}}${{steps.target.outputs.flag}}${{steps.components.outputs.flag}} --profile minimal --no-self-update
|
||||||
|
|||||||
Reference in New Issue
Block a user