diff --git a/tools/Gen2Master/MoveFromGeneration2Master.ps1 b/tools/Gen2Master/MoveFromGeneration2Master.ps1 index 5b3e9a15bda6..2c51dc7a64e4 100644 --- a/tools/Gen2Master/MoveFromGeneration2Master.ps1 +++ b/tools/Gen2Master/MoveFromGeneration2Master.ps1 @@ -8,7 +8,7 @@ Function Move-Generation2Master { process { $ModuleName = ($SourcePath.Trim("\").Split("\"))[-1] - If (-not ($DestPath.Trim("\").Split("\"))[-1] -eq $ModuleName)) { + If (-not ($DestPath.Trim("\").Split("\"))[-1] -eq $ModuleName) { $DestPath = Join-Path -Path $DestPath -ChildPath $ModuleName } If (-not (Test-Path $DestPath)) {