From b5ceb1e09db32434f0700b4ab199c1c613e54e95 Mon Sep 17 00:00:00 2001 From: Youri Date: Fri, 18 Dec 2020 15:33:49 +0800 Subject: [PATCH] Fix the path issue --- tools/Gen2Master/MoveFromGeneration2Master.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/Gen2Master/MoveFromGeneration2Master.ps1 b/tools/Gen2Master/MoveFromGeneration2Master.ps1 index 62a37bb97b8c..39853f5e0ca3 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)) {