mirror of
https://github.com/inspec/inspec
synced 2024-11-26 14:40:26 +00:00
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:
parent
e760c68c16
commit
3008c98061
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue