Skip to content

Commit 46b0561

Browse files
authored
Merge pull request #107 from jwittner/dev/licenseDSCResource
Fix for missing folders
2 parents 8cc66e1 + 8bcafa3 commit 46b0561

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UnitySetup/UnitySetup.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ function Get-UnityLicense
995995
[CmdletBinding()]
996996
param([SecureString]$Serial, [UnityVersion]$UnityVersion)
997997

998-
$licenseFiles = Get-ChildItem "C:\ProgramData\Unity\Unity_*.ulf"
998+
$licenseFiles = Get-ChildItem "C:\ProgramData\Unity\Unity_*.ulf" -ErrorAction 'SilentlyContinue'
999999
foreach ( $licenseFile in $licenseFiles ) {
10001000
Write-Verbose "Discovered License File at $licenseFile"
10011001
$doc = [xml](Get-Content "$licenseFile")

0 commit comments

Comments
 (0)