Skip to content

Commit

Permalink
Make default-gems install cmd match current Ruby version
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoa committed Apr 29, 2017
1 parent 6d4308a commit fd89b90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ get_ruby_type() {

install_default_gems() {
local default_gems="${HOME}/.default-gems"
local gem_bin="${ASDF_INSTALL_PATH}/bin/gem"

if [ ! -f $default_gems ]; then return; fi

Expand All @@ -228,7 +229,7 @@ install_default_gems() {
for name in $(cat $default_gems); do
echo -n "Installing ${name} gem... "

if gem install $name > /dev/null 2>&1; then
if $gem_bin install $name > /dev/null 2>&1; then
echo "SUCCESS"
else
echo "FAIL"
Expand Down

0 comments on commit fd89b90

Please sign in to comment.