I'm running Mavericks 10.9.5 and I have tried to install Metasploit from this guide.
It was until the Install Homebew I used
echo PATH=/usr/local/bin:/usr/local/sbin:$PATH >> ~/.bash_profile
And now I get this error every time I open Terminal:
-bash: /Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Library/Nessus/run/sbin:/opt/X11/bin:/usr/local/bin:/usr/local/sbin: No such file or directory
-bash: /Users/Renzo/.bash_profile: line 7: syntax error in conditional expression
-bash: /Users/Renzo/.bash_profile: line 8: syntax error near `PATH="/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Library/Nessus/run/sbin:/opt/X11/bin"'
-bash: /Users/Renzo/.bash_profile: line 8: `PATH="/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Library/Nessus/run/sbin:/opt/X11/bin"'
All commands seem to work just fine but the errors concern me. I have opened the .bash_profile before and deleted anything to do with rvm on all 'profiles' prior to this error but the errors are referring to the bash_profile. This is what the bash profile currently looks like:
# Setting PATH for Python 3.4
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.4/bin:${PATH}"
export PATH
/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Library/Nessus/run/sbin:/opt/X11/bin:/usr/local/bin:/usr/local/sbin
[[ -s "$HOME/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Library/Nessus/run/sbin:/opt/X11/bin:/usr/local/bin:/usr/local/sbin"
PATH="/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Library/Nessus/run/sbin:/opt/X11/bin"
Does anyone know how to fix this? I want this fixed as soon as possible so I can backup my drive for the first time using Time Machine and upgrade to Yosemite. There was a major vulnerability called Rootpipe that was allegedly fix for ONLY Yosemite 10.10.3 and not older firmwares but that was reportedly a failed fix by a former NSA staff a couple days ago.