Closed Ana06 closed 2 months ago
@emtuls
I think we are missing the Try-Catch inside of VM-Install-Node-Tool-From-Zip
There is a try-catch inside VM-Install-From-Zip
and apart from that we execute a variable assignation and the rest is executed after $ErrorActionPreference = 'Continue'
, so we do not need an extra try-catch.
Introduce a
VM-Install-Node-Tool-From-Zip
helper function to install Node tools installed withnpm
and normally downloaded from a GitHub repository as a ZIP with an inner folder.First step to address https://github.com/mandiant/VM-Packages/issues/999
I do not understand why
PSAvoidUsingPositionalParameters
has started complaining now in the linter, as we use positional parameters in many functions:Exclude this violation as it is of
Information
severity and we wouldneed to make a lot of changes to fix it.