Installer script tweaked

This commit is contained in:
2014-09-02 10:32:57 +02:00
parent ae768958b7
commit 77c65518b8
2 changed files with 10 additions and 7 deletions

View File

@@ -1,4 +1,2 @@
hrz /Users/michi/Documents/workspace_ruby/HRZ
fiona /Users/michi/Documents/workspace_ruby/HRZ/fiona-uniffm
root /Users/michi
ruby /Users/michi/Documents/workspace_ruby

View File

@@ -52,11 +52,16 @@ fi
# check if $SHELL is already set to ZSH
if [ "$(echo $SHELL)" != "$_zsh_file" ]
then
echo
echo "Changing shell to ZSH, need sudo password"
echo
echo $_zsh_file | sudo tee -a /etc/shells;
chsh -s $_zsh_file;
if [ -f $zsh_file ]
then
echo
echo "Changing shell to ZSH, need sudo password"
echo
echo $_zsh_file | sudo tee -a /etc/shells;
chsh -s $_zsh_file;
else
echo "Install ZSH via Homebrew first!"
fi
else
echo "ZSH already installed"
fi