Skip to content

Commit

Permalink
Proper exception after temp directory failure
Browse files Browse the repository at this point in the history
  • Loading branch information
vensko committed Feb 17, 2019
1 parent 610193e commit c96c815
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pint.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -596,11 +596,7 @@ function pint-file-install([string]$id, [string]$file, [string]$destDir, [string
pint-unpack $file $tempDir $meta.type
}

cd $tempDir

if ($tempDir -ne $pwd) {
throw "Unable to use $tempDir as a temporary directory."
}
cd -ea stop $tempDir

$base = if ($meta.base) {$meta.base} else {'.exe'}

Expand Down

0 comments on commit c96c815

Please sign in to comment.