Make copy idempotent

This commit is contained in:
Nick Guerrera 2017-10-17 14:32:36 -07:00
parent c9eeef1790
commit 57d256dbf5
2 changed files with 2 additions and 2 deletions

View file

@ -44,7 +44,7 @@ if (!$env:DOTNET_TOOL_DIR)
}
else
{
cp -r $env:DOTNET_TOOL_DIR $env:DOTNET_INSTALL_DIR
Copy-Item -Force -Recurse $env:DOTNET_TOOL_DIR $env:DOTNET_INSTALL_DIR
}
# Put the stage0 on the path

View file

@ -80,7 +80,7 @@ if (!$env:DOTNET_TOOL_DIR)
}
else
{
cp -r $env:DOTNET_TOOL_DIR $env:DOTNET_INSTALL_DIR
Copy-Item -Recurse -Force $env:DOTNET_TOOL_DIR $env:DOTNET_INSTALL_DIR
}
# Put the stage0 on the path