diff --git a/action.yml b/action.yml index a4e7a3d..ff70d5d 100644 --- a/action.yml +++ b/action.yml @@ -30,9 +30,7 @@ runs: - id: flags run: | : construct rustup command line - if [[ -z "$targets" ]]; then - targets="$target" - fi + if [[ -z "$targets" ]]; then targets=$target; fi echo "::set-output name=targets::$(for t in ${targets//,/ }; do echo -n ' --target' $t; done)" echo "::set-output name=components::$(for c in ${components//,/ }; do echo -n ' --component' $c; done)" echo "::set-output name=downgrade::${{inputs.toolchain == 'nightly' && inputs.components && ' --allow-downgrade' || ''}}"