mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
Fix for invocation when calling npm under sudo
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
parent
549e3c196e
commit
c0b5b9cd41
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ module Inspec::Resources
|
|||
npm = "npm -g"
|
||||
end
|
||||
|
||||
cmd = inspec.command("#{npm} ls --json #{@package_name}")
|
||||
cmd = inspec.command("sh -c '#{npm} ls --json #{@package_name}'")
|
||||
@info = {
|
||||
name: @package_name,
|
||||
type: "npm",
|
||||
|
|
Loading…
Reference in a new issue