Closed peternazarov closed 2 years ago
Possible workaround: Always provide "-Path" parameter and ensure that you pass an absolute path value.
$envFileAbsolutePath = $(Get-Item -Path ".env").FullName
$compose_project_name = Get-EnvFileVariable -Variable "COMPOSE_PROJECT_NAME" -Path $envFileAbsolutePath
$status = Invoke-RestMethod "http://localhost:8079/api/http/routers/cm-$comp
Added additional Unit Tests to identify a bug on Issue #38 "Get-EnvFileVariable"