Skip to content

Commit 79ace6b

Browse files
committed
Fix code cache creation loop
1 parent 22c1cd4 commit 79ace6b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

icinga-powershell-framework.psm1

+1-3
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ function Use-Icinga()
4646
Use-IcingaPlugins;
4747
}
4848

49-
Write-IcingaFrameworkCodeCache;
50-
5149
# This function will allow us to load this entire module including possible
5250
# actions, making it available within our shell environment
5351
# First load our custom modules
@@ -135,7 +133,7 @@ function Import-IcingaLib()
135133

136134
$CacheFile = Get-IcingaFrameworkCodeCacheFile;
137135

138-
if ($Custom -eq $FALSE -And $CompileCache -eq $FALSE -And (Test-Path $CacheFile)) {
136+
if ($CompileCache -eq $FALSE) {
139137
Import-Module 'icinga-powershell-framework' -Global -Force;
140138
return;
141139
}

0 commit comments

Comments
 (0)