I get a bash syntax error message every time I open Terminal I've been getting this error for the past couple of months and I wonder if it's a major issue, and how do I fix it?

When I open terminal on my Mac I get this bash error:

~bash: /Users/admin/.bash_profile: line 1: syntax error near unexpected token 'fi'
~bash: /Users/admin/.bash_profile:line 1: 'if which rbenv &gt; /dev/null; than eval "$(rbenv init -)"; fi'


Anybody know what's going on?
Open the Terminal.app and type the following line at your prompt

sed -i '' 's/than/then/' .bash_profile


You do have a .bash_profile in your home directory.