Skip to content

Commit 15ac53c

Browse files
author
John Luo
committed
Fix CodeCheck
1 parent a8bb8dd commit 15ac53c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ param(
157157

158158
# Other lifecycle targets
159159
[switch]$Help, # Show help
160-
160+
161161
# Optional arguments that enable downloading an internal
162162
# runtime or runtime from a non-default location
163163
[string]$DotNetRuntimeSourceFeed,

eng/scripts/CodeCheck.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ function LogError {
4747
try {
4848
if ($ci) {
4949
# Install dotnet.exe
50-
& $repoRoot/restore.cmd -ci -NoBuildNodeJS -DotNetRuntimeSourceFeed $DotNetRuntimeSourceFeed -DotNetRuntimeSourceFeedKey $DotNetRuntimeSourceFeedKey
50+
if ($DotNetRuntimeSourceFeed -or $DotNetRuntimeSourceFeedKey) {
51+
& $repoRoot/restore.cmd -ci -NoBuildNodeJS -DotNetRuntimeSourceFeed $DotNetRuntimeSourceFeed -DotNetRuntimeSourceFeedKey $DotNetRuntimeSourceFeedKey
52+
}
53+
else{
54+
& $repoRoot/restore.cmd -ci -NoBuildNodeJS
55+
}
5156
}
5257

5358
. "$repoRoot/activate.ps1"

0 commit comments

Comments
 (0)