Sami Asked: 2020-12-18 14:52:33 +0800 CST syntax error: unexpected end of file .bash_profile 6 I added the below code to empty ~/.bash_profile file and after restarting and login via ssh to the server I get syntax error: unexpected end of file .bash_profile NODE_ENV=production if [ -f ~/.bashrc ]; then . ~/.bashrc fi bash syntax