From e596202af38f9e4b61e98490cd0f0125438f37c1 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 c1047a10..ac4b425e 100644 --- a/scripts/Common/Scripts/SoftwareManagement.ps1 +++ b/scripts/Common/Scripts/SoftwareManagement.ps1 @@ -1,7 +1,7 @@ #!/bin/bash -. "$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;