We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbf05d0 commit 7e9eb79Copy full SHA for 7e9eb79
ruby-install
@@ -65,7 +65,12 @@ fi
65
66
(
67
export PATH="$LOCATION"/bin:"$PATH"
68
- "$LOCATION"/bin/gem install --no-rdoc --no-ri bundler pry > /tmp/$USER-ruby-install-bundler.log 2>&1
+ gems="pry"
69
+ bundle_path=$(which bundle)
70
+ if [ "x"$bundle_path = "x" ]; then
71
+ gems="bundler $gems"
72
+ fi
73
+ "$LOCATION"/bin/gem install --no-rdoc --no-ri $gems > /tmp/$USER-ruby-install-bundler.log 2>&1
74
) || (echo "gem install failed. see log /tmp/$USER-ruby-install-bundler.log" && exit 2)
75
76
echo "ruby $TARGET_VERSION successfully installed on $LOCATION"
0 commit comments