We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bf49bb commit 320852fCopy full SHA for 320852f
1 file changed
build/init.ps1
@@ -76,11 +76,13 @@ Function Get-BuildTools {
76
$FileDirectory = Join-Path $NuGetClientRoot $Path
77
$FilesToMove = Get-ChildItem -Path $FolderUri -File
78
foreach ($File in $FilesToMove) {
79
- if (-not (Test-Path (Join-Path $FileDirectory $File))) {
80
- $File | Move-Item -Destination $FileDirectory
+ $DestinationFile = Join-Path $FileDirectory $File.Name
+
81
+ if (-not (Test-Path $DestinationFile)) {
82
+ Move-Item -Path $File.FullName -Destination $FileDirectory
83
}
84
else {
- Write-Host "File '$File' already exists, skipping" -ForegroundColor Blue
85
+ Write-Host "File '$($File.Name)' already exists, skipping" -ForegroundColor Blue
86
87
88
0 commit comments