Files
runner-images/images/win/post-generation/RustJunction.ps1
Dibir Magomedsaygitov 56633cec4a refactor and rename scripts
2020-09-30 20:13:40 +03:00

12 lines
385 B
PowerShell

# Create Rust junction points to cargo and rustup folder
$cargoTarget = "$env:USERPROFILE\.cargo"
if (-not (Test-Path $cargoTarget))
{
New-Item -ItemType Junction -Path $cargoTarget -Target "C:\Rust\.cargo"
}
$rustupTarget = "$env:USERPROFILE\.rustup"
if (-not (Test-Path $rustupTarget))
{
New-Item -ItemType Junction -Path $rustupTarget -Target "C:\Rust\.rustup"
}