Yesterday I have changed my .profile to include go path. And it looks like this:
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
GOPATH="$HOME/go"
PATH="$PATH:$GOPATH/bin"
When I run my laptop the next time, it is showing me a dialog that says there is an error in line 1.
What is wrong with my .profile file?
# ~/.profile: executed by the command interpreter for login shells.