Skip to content

Commit 57f0501

Browse files
committed
address Tess' feedback to flip the logic
1 parent cc5a7fb commit 57f0501

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

build.ps1

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -377,13 +377,12 @@ if (!$SkipBuild) {
377377
}
378378
}
379379

380-
# skip copying WindowsPowerShell resource on non-Windows
381-
if (!$IsWindows) {
382-
Copy-Item "*.dsc.resource.json" $target -Exclude 'windowspowershell.dsc.resource.json' -Force -ErrorAction Ignore
383-
}
384-
else {
380+
if ($IsWindows) {
385381
Copy-Item "*.dsc.resource.json" $target -Force -ErrorAction Ignore
386382
}
383+
else { # don't copy WindowsPowerShell resource maisource manifest
384+
Copy-Item "*.dsc.resource.json" $target -Exclude 'windowspowershell.dsc.resource.json' -Force -ErrorAction Ignore
385+
}
387386

388387
# be sure that the files that should be executable are executable
389388
if ($IsLinux -or $IsMacOS) {

0 commit comments

Comments
 (0)