depot/third_party/nixpkgs/pkgs/development/tools/misc/chruby/env.patch
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

12 lines
334 B
Diff

diff --git a/share/chruby/chruby.sh b/share/chruby/chruby.sh
--- a/share/chruby/chruby.sh
+++ b/share/chruby/chruby.sh
@@ -1,7 +1,7 @@
CHRUBY_VERSION="0.3.8"
RUBIES=()
-for dir in "$PREFIX/opt/rubies" "$HOME/.rubies"; do
+for dir in @rubiesEnv@; do
[[ -d "$dir" && -n "$(ls -A "$dir")" ]] && RUBIES+=("$dir"/*)
done
unset dir