From d74e3f6eda24d39e5d5d5f797b0f487ede577fb6 Mon Sep 17 00:00:00 2001 From: Phil Crockett Date: Wed, 25 Dec 2024 19:58:38 -0600 Subject: [PATCH] fix: set GEM_HOME and GEM_PATH in bashly wrapper (#16) --- lib/bashly_wrapper.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/bashly_wrapper.sh b/lib/bashly_wrapper.sh index 659b99c..84c2df4 100755 --- a/lib/bashly_wrapper.sh +++ b/lib/bashly_wrapper.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -Eeuo pipefail -current_script_path=${BASH_SOURCE[0]} +current_script_path="${BASH_SOURCE[0]}" bin_dir="$(dirname "${current_script_path}")" install_dir="$(dirname "${bin_dir}")" gem_home="${install_dir}/gem" @@ -9,4 +9,6 @@ gem_home="${install_dir}/gem" PATH="${gem_home}/bin:${PATH}" \ BUNDLE_GEMFILE="${install_dir}/Gemfile" \ BUNDLE_PATH="${install_dir}/artifacts" \ + GEM_HOME="${gem_home}" \ + GEM_PATH="${gem_home}" \ bundle exec bashly "${@}"