Remove world readable attribute from /usr/local/bundle

Artifact tests may fail due to warnings about `Insecure world writable dir /usr/local/bundle in PATH` appearing in stderr

Signed-off-by: James Stocks <jstocks@chef.io>
This commit is contained in:
James Stocks 2020-07-17 16:00:26 +01:00
parent 230ca2ba03
commit 04cfc73805

View file

@ -48,6 +48,9 @@ fi
echo "+++ Installing ${pkg_ident:?is undefined}"
hab pkg install -b "${project_root:?is undefined}/results/${pkg_artifact:?is undefined}"
echo "--- Removing world readability from /usr/local/bundle"
chmod go-w /usr/local/bundle
echo "+++ Testing $PLAN"
PATH="$(hab pkg path ci/inspec)/bin:$PATH"