ruby on rails - bash_profile syntax error -


i getting syntax error in .bash_profile when start terminal on yosemite. have found online suggests there nothing wrong syntax, although getting error in line 4. here error, followed .bash_profile code. can see wrong? affecting ability install rails (i seem having difficulty write permissions):

the error:

-bash: /users/admin/.bash_profile: line 4: syntax error near unexpected token `fi' -bash: /users/admin/.bash_profile: line 4: `eval "$(rbenv init -)"; fi' 

the .bash_profile code:

export path=/usr/loca/bin:$path eval "$(rbenv init -)" if rbenv > /dev/null eval "$(rbenv init -)"; fi if rbenv > /dev/null; eval "$(rbenv init -)"; fi  [[ -s "$home/.rvm/scripts/rvm" ]] && source "$home/.rvm/scripts/rvm" # load rvm shell session *as function* 

thanks!

the if statement on line 3 not have matching then. until bash sees then, doesn't let use fi.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -