-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
I ran into the issue when using this in a script.
On first run of the script, the .env is read and $env is populated. Upon re-run, it fails to load because it thinks we already have (same dir)
Lines 35 to 40 in 1be3a96
| if($Global:PreviousDir -eq (Get-Location).Path){ | |
| Write-Verbose "Set-PsEnv:Skipping same dir" | |
| return | |
| } else { | |
| $Global:PreviousDir = (Get-Location).Path | |
| } |
Metadata
Metadata
Assignees
Labels
No labels