Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix check for inf2cat and signtool existence #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Hossy
Copy link

@Hossy Hossy commented Jul 14, 2020

Script fails when it doesn't find a match in $inf2cat_paths or $signtool_paths. Test-Path fails when passed a null value and that failure does not translate to $false, so -not cannot make it $true. If the first check on a null value is [String]::IsNullOrEmpty, Test-Path won't run and won't throw an error.

Script fails when it doesn't find a match in $inf2cat_paths or $signtool_paths.  Test-Path fails when passed a null value and that failure does not translate to $false, so -not cannot make it $true.  If the first check on a null value is [String]::IsNullOrEmpty, Test-Path won't run and won't throw an error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant