Skip to content

Commit a474170

Browse files
author
John Luo
committed
Fix CodeCheck
1 parent 6712203 commit a474170

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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)