habitat packaging: Fix inspec wrapper linking to /bin/bash instead of the bash hab package (#3671)

Signed-off-by: Will Fisher <wfisher@chef.io>
This commit is contained in:
Will Fisher 2018-12-20 10:29:51 -08:00 committed by Clinton Wolfe
parent e760c68c16
commit 3008c98061

View file

@ -12,6 +12,7 @@ pkg_deps=(
core/cacerts
core/git
core/ruby
core/bash
)
pkg_build_deps=(
core/gcc
@ -54,7 +55,7 @@ wrap_inspec_bin() {
local real_bin="$GEM_HOME/gems/inspec-${pkg_version}/bin/inspec"
build_line "Adding wrapper $bin to $real_bin"
cat <<EOF > "$bin"
#!$(pkg_path_for bash)/bin/bash
#!$(pkg_path_for core/bash)/bin/bash
export SSL_CERT_FILE=$(pkg_path_for cacerts)/ssl/cert.pem
set -e