fix install zsh task in rakefile
This commit is contained in:
parent
c639430aa9
commit
ff672290d4
7
Rakefile
7
Rakefile
@ -57,10 +57,10 @@ task :install_zsh do
|
||||
if want_to_install?('zsh')
|
||||
run %{
|
||||
which zsh
|
||||
if [ $? != 0 ]; then
|
||||
if [ "$(uname)" == "Darwin" ]; then
|
||||
if [ $? -ne 0 ]; then
|
||||
if [ "$(uname)" = "Darwin" ]; then
|
||||
brew install zsh
|
||||
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
|
||||
elif [ "$(expr substr $(uname -s) 1 5)" = "Linux" ]; then
|
||||
apt install zsh -y
|
||||
fi
|
||||
fi
|
||||
@ -159,7 +159,6 @@ end
|
||||
|
||||
task :default => 'install'
|
||||
|
||||
|
||||
private
|
||||
def run(cmd)
|
||||
puts "[Running] #{cmd}"
|
||||
|
Loading…
Reference in New Issue
Block a user