From 98db57981c387a6a5a1266a4c06cf81076507fdf Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 7 Aug 2024 21:54:58 +0200 Subject: [PATCH] Resolve dependency loop --- scripts/Common/Scripts/SoftwareManagement.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/Common/Scripts/SoftwareManagement.ps1 b/scripts/Common/Scripts/SoftwareManagement.ps1 index 1250fefb..7c631394 100644 --- a/scripts/Common/Scripts/SoftwareManagement.ps1 +++ b/scripts/Common/Scripts/SoftwareManagement.ps1 @@ -1,6 +1,6 @@ -. "$PSScriptRoot/Context.ps1"; - -function Install-SoftwarePackage([Context] $context, [string] $location, [string[]] $argumentList = @("/S"), [switch]$local) { +function Install-SoftwarePackage($context, [string] $location, [string[]] $argumentList = @("/S"), [switch]$local) { + . "$PSScriptRoot/Context.ps1"; + [Context]$context = $context; [string]$filePath = ""; [string]$tempDir = $null;