Skip to content

Commit

Permalink
Merge pull request #36 from thiagoa/fix-default-gems-command-path
Browse files Browse the repository at this point in the history
Make default-gems install command match current Ruby version
  • Loading branch information
Stratus3D authored May 2, 2017
2 parents 6d4308a + fd89b90 commit 302efde
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 302efde

Please sign in to comment.