Fixed typo
This commit is contained in:
@@ -233,7 +233,7 @@ Function Import-YAMLConfig () {
|
||||
If (Test-CommandExists -Command "ConvertFrom-Yaml") {
|
||||
If (Test-Path -Path $ConfigFile) {
|
||||
Try {
|
||||
Return (Get-Content -Raw -Path $ConfigFile | ConvertFrom-Json)
|
||||
Return (Get-Content -Raw -Path $ConfigFile | ConvertFrom-Yaml)
|
||||
}
|
||||
Catch {
|
||||
Write-Output "Error loading config file! Please make sure the correct path was provided, and that it is a properly formatted JSON file" -As Error
|
||||
|
Reference in New Issue
Block a user