nixpkgs/pkgs/development/tools/misc/chruby/env.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
334 B
Diff
Raw Normal View History

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