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')
|
if want_to_install?('zsh')
|
||||||
run %{
|
run %{
|
||||||
which zsh
|
which zsh
|
||||||
if [ $? != 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
if [ "$(uname)" == "Darwin" ]; then
|
if [ "$(uname)" = "Darwin" ]; then
|
||||||
brew install zsh
|
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
|
apt install zsh -y
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -159,7 +159,6 @@ end
|
|||||||
|
|
||||||
task :default => 'install'
|
task :default => 'install'
|
||||||
|
|
||||||
|
|
||||||
private
|
private
|
||||||
def run(cmd)
|
def run(cmd)
|
||||||
puts "[Running] #{cmd}"
|
puts "[Running] #{cmd}"
|
||||||
|
Loading…
Reference in New Issue
Block a user