Skip to content

Commit 9ff8750

Browse files
author
Hovsep
authored
Fixed style check PS script. (Azure#12)
1 parent 0668d5f commit 9ff8750

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

CheckSourceFiles.ps1

+7-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@ function Check-LicenseHeader()
3333
return $retValue;
3434
}
3535

36-
if(Check-SyncMethods | Check-LicenseHeader) {
36+
$syncMethods = Check-SyncMethods
37+
$licenseHeaders = Check-LicenseHeader
38+
39+
if($syncMethods -Or $licenseHeaders) {
40+
Write-Host "[FAILED]: Style Check failed..."
3741
exit(-1)
3842
}
43+
44+
Write-Host "[SUCCESS]: Style Check passed..."
3945
exit(0)

0 commit comments

Comments
 (0)