Skip to content

Commit

Permalink
Resolve relative paths before passing to handle.exe (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
ca-johnson authored Oct 10, 2019
2 parents dfd6fdf + 93e82a5 commit 45885a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hooks/purge.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ param(

pslist -t -accepteula -nobanner

"Finding handles in $Dir"
$OUT=$(handle64 -accepteula -nobanner $Dir)
$absDir = Resolve-Path $Dir
"Finding handles in $absDir"
$OUT=$(handle64 -accepteula -nobanner $absDir)

$processMap = @{}
ForEach ($line in $OUT -split "`r`n")
Expand Down

0 comments on commit 45885a1

Please sign in to comment.