Fix graceful exit on-install for homebrew/rbenv
This commit is contained in:
parent
a09b7cd2a2
commit
ff8163e072
|
@ -8,7 +8,8 @@ module Homebrew
|
|||
def self.bootstrap
|
||||
unless self.is_installed?
|
||||
sh_safe 'ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"'
|
||||
sh_safe 'exec $SHELL -l'
|
||||
echo "Homebrew is installed! Restart the shell then rake."
|
||||
exit
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -10,7 +10,8 @@ module Rbenv
|
|||
def self.bootstrap
|
||||
unless self.is_installed?
|
||||
BREWS.each { |pkg| Homebrew.install pkg }
|
||||
sh_safe 'exec $SHELL -l'
|
||||
echo "Rbenv is installed! Restart the shell then rake."
|
||||
exit
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -24,8 +25,8 @@ module Rbenv
|
|||
def self.install(version, gems=[])
|
||||
unless self.is_version_installed?(version)
|
||||
sh_safe "rbenv install #{version}"
|
||||
sh_safe "RBENV_VERSION=#{version} #{GEM_BIN} install #{gems.join(' ')}"
|
||||
end
|
||||
sh_safe "RBENV_VERSION=#{version} #{GEM_BIN} install #{gems.join(' ')}"
|
||||
end
|
||||
|
||||
def self.update(version)
|
||||
|
|
Loading…
Reference in a new issue