easitab / EPR.GlobalFunctions

Provide functions to be used in script executed by EasitProcessRunner
https://docs.easitgo.com/techspace/epr/globalfunctions/
Apache License 2.0
1 stars 0 forks source link

Relative paths set by 'Set-EPREnvironment' is incorrect #46

Closed easitab-owner closed 8 months ago

easitab-owner commented 8 months ago

Set-EPREnvironment uses '(Split-Path -Path (Split-Path -Path $PSScriptRoot) -Parent)' to set variable epr_Directory. This was correct while using the old script 'environmentSetup.ps1' but not know when used in a module located in scripts/helpers/module/.../.../*.

Update path splitting to get correct "root" directory.