mirror of
https://github.com/inspec/inspec
synced 2024-11-23 05:03:07 +00:00
Update hab exporter to use inspec in path over calling to hab sup
Signed-off-by: Elliott Davis <edavis@chef.io>
This commit is contained in:
parent
1cecf4f9f0
commit
31645968e2
2 changed files with 1 additions and 2 deletions
|
@ -14,7 +14,6 @@ pkg_deps=(
|
|||
core/libxslt
|
||||
core/ruby
|
||||
core/net-tools
|
||||
core/hab
|
||||
)
|
||||
pkg_build_deps=(
|
||||
core/bundler
|
||||
|
|
|
@ -346,7 +346,7 @@ mkdir -p {{pkg.svc_var_path}}/inspec_results
|
|||
|
||||
while true; do
|
||||
echo "Executing InSpec for ${PROFILE_IDENT}"
|
||||
hab pkg exec chef/inspec inspec exec {{pkg.path}}/dist --format=json > ${RESULTS_FILE} 2>${ERROR_FILE}
|
||||
inspec exec {{pkg.path}}/dist --format=json > ${RESULTS_FILE} 2>${ERROR_FILE}
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "InSpec run completed successfully."
|
||||
|
|
Loading…
Reference in a new issue