File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ function Set-IcingaCacheData()
4141 $cacheData = Get-IcingaCacheData - Space $Space - CacheStore $CacheStore ;
4242 } else {
4343 try {
44- New-Item - Path $CacheFile - Force | Out-Null ;
44+ New-Item - ItemType File - Path $CacheFile - Force | Out-Null ;
4545 } catch {
4646 Exit-IcingaThrowException - InputString $_.Exception - CustomMessage (Get-IcingaCacheDir ) - StringPattern ' NewItemUnauthorizedAccessError' - ExceptionType ' Permission' - ExceptionThrown $IcingaExceptions.Permission.CacheFolder ;
4747 Exit-IcingaThrowException - CustomMessage $_.Exception - ExceptionType ' Unhandled' - Force;
@@ -66,4 +66,4 @@ function Set-IcingaCacheData()
6666 Exit-IcingaThrowException - InputString $_.Exception - CustomMessage (Get-IcingaCacheDir ) - StringPattern ' System.UnauthorizedAccessException' - ExceptionType ' Permission' - ExceptionThrown $IcingaExceptions.Permission.CacheFolder ;
6767 Exit-IcingaThrowException - CustomMessage $_.Exception - ExceptionType ' Unhandled' - Force;
6868 }
69- }
69+ }
You can’t perform that action at this time.
0 commit comments