Skip to content

Commit

Permalink
fix: set GEM_HOME and GEM_PATH in bashly wrapper (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrockett authored Dec 26, 2024
1 parent a11e875 commit d74e3f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/bashly_wrapper.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#!/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"

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 "${@}"

0 comments on commit d74e3f6

Please sign in to comment.