Skip to content

Commit

Permalink
fix(local-build): EA 0 for test paths
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Aug 31, 2024
1 parent 9a6a018 commit ef4ea8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/local-build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Would you like to add to your PowerShell profile to automatically recognise thes
#--LOCAL-BUILD-MODULES-START--#
$workspace = $psEditor.Workspace.Path
$modulesFile = "$workspace\.atlasPsModulesPath"
if ([bool](Test-Path 'Env:\VSCODE_*') -and (Test-Path $workspace) -and (Test-Path $modulesFile)) {
if ([bool](Test-Path 'Env:\VSCODE_*') -and (Test-Path $workspace -EA 0) -and (Test-Path $modulesFile -EA 0)) {
$modulePath = Join-Path $workspace (Get-Content $modulesFile -Raw)
if (!(Test-Path $modulePath -PathType Container)) {
Write-Warning "Couldn't find module path specified in '$modulesFile', no Atlas modules can be loaded."
Expand Down

0 comments on commit ef4ea8a

Please sign in to comment.