Skip to content

Commit 6c32db8

Browse files
Merge pull request #48 from corbob/patch-1
update foreach block to use unique variable name
2 parents dd313e9 + 485f42b commit 6c32db8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PSUtil/functions/path/Get-PSUPathAlias.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525

2626
$aliases = Get-PSFConfig -FullName psutil.pathalias.$Alias
2727

28-
foreach ($alias in $aliases)
28+
foreach ($currentAlias in $aliases)
2929
{
3030
[pscustomobject]@{
31-
Alias = ($alias.fullname -replace '^psutil.pathalias.')
32-
Path = $alias.value
31+
Alias = ($currentAlias.fullname -replace '^psutil.pathalias.')
32+
Path = $currentAlias.value
3333
}
3434
}
35-
}
35+
}

0 commit comments

Comments
 (0)