From 8923026df57d2547f8b7e64bc02ed9008c6b190a Mon Sep 17 00:00:00 2001 From: Rashil Gandhi Date: Sun, 14 Aug 2022 13:50:59 +0530 Subject: [PATCH] rustup(-msvc): Fix command argument parsing --- bucket/rustup-msvc.json | 2 +- bucket/rustup.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bucket/rustup-msvc.json b/bucket/rustup-msvc.json index bae237d18a..3eddc3f120 100644 --- a/bucket/rustup-msvc.json +++ b/bucket/rustup-msvc.json @@ -25,7 +25,7 @@ "[Environment]::SetEnvironmentVariable('CARGO_HOME', \"$persist_dir\\.cargo\", 'Process')", "[Environment]::SetEnvironmentVariable('RUSTUP_HOME', \"$persist_dir\\.rustup\", 'Process')", "$host_arch = if ($architecture -eq '64bit') {'x86_64'} else {'i686'}", - "Invoke-ExternalCommand -Path \"$dir\\rustup-init.exe\" -Args \"-y --no-modify-path --default-host $host_arch-pc-windows-msvc\" | Out-Null" + "Invoke-ExternalCommand -Path \"$dir\\rustup-init.exe\" -Args @('-y', '--no-modify-path', '--default-host', \"$host_arch-pc-windows-msvc\") | Out-Null" ] }, "env_add_path": ".cargo\\bin", diff --git a/bucket/rustup.json b/bucket/rustup.json index c628dee8b9..b133a61105 100644 --- a/bucket/rustup.json +++ b/bucket/rustup.json @@ -19,7 +19,7 @@ "[Environment]::SetEnvironmentVariable('CARGO_HOME', \"$persist_dir\\.cargo\", 'Process')", "[Environment]::SetEnvironmentVariable('RUSTUP_HOME', \"$persist_dir\\.rustup\", 'Process')", "$host_arch = if ($architecture -eq '64bit') {'x86_64'} else {'i686'}", - "Invoke-ExternalCommand -Path \"$dir\\rustup-init.exe\" -Args \"-y --no-modify-path --default-host $host_arch-pc-windows-gnu\" | Out-Null" + "Invoke-ExternalCommand -Path \"$dir\\rustup-init.exe\" -Args @('-y', '--no-modify-path', '--default-host', \"$host_arch-pc-windows-gnu\") | Out-Null" ] }, "env_add_path": ".cargo\\bin",