From f212fb65c7af4a7d0abdcdc468f16fb301304f94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20K=C5=82ys?= Date: Mon, 9 Sep 2019 13:52:03 +0200 Subject: [PATCH] #30 --- Private/Import-TestimoConfiguration.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Private/Import-TestimoConfiguration.ps1 b/Private/Import-TestimoConfiguration.ps1 index be81aa0..44b8d20 100644 --- a/Private/Import-TestimoConfiguration.ps1 +++ b/Private/Import-TestimoConfiguration.ps1 @@ -9,8 +9,8 @@ if ($Configuration -is [System.Collections.IDictionary]) { $Option = 'Hashtable' $LoadedConfiguration = $Configuration - } elseif ($Object -is [string]) { - if (Test-Path -LiteralPath $Object) { + } elseif ($Configuration -is [string]) { + if (Test-Path -LiteralPath $Configuration) { $Option = 'File' $FileContent = Get-Content -LiteralPath $Configuration } else {