From fcacb3b64f3c04454b35af9cc83b2a22de5ea5d8 Mon Sep 17 00:00:00 2001 From: lucdekens Date: Wed, 20 Sep 2017 20:35:00 +0200 Subject: [PATCH] Update vCheck.ps1 --- vCheck.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vCheck.ps1 b/vCheck.ps1 index 688dea66..0e423536 100644 --- a/vCheck.ps1 +++ b/vCheck.ps1 @@ -71,6 +71,10 @@ param ( $vCheckVersion = "6.24" $Date = Get-Date +# Setup all paths required for script to run +$ScriptPath = (Split-Path ((Get-Variable MyInvocation).Value).MyCommand.Path) +$PluginsFolder = $ScriptPath + "\Plugins\" + #region Internationalization ################################################################################ # Internationalization # @@ -733,10 +737,6 @@ function Get-ConfigScripts { ################################################################################ # Initialization # ################################################################################ -# Setup all paths required for script to run -$ScriptPath = (Split-Path ((Get-Variable MyInvocation).Value).MyCommand.Path) -$PluginsFolder = $ScriptPath + "\Plugins\" - # if we have the job parameter set, get the paths from the config file. if ($job) { [xml]$jobConfig = Get-Content $job