Realpath for gopath (#108)

This commit is contained in:
Cyryl Płotnicki 2017-03-18 09:16:20 +00:00 committed by GitHub
parent 15237eeac4
commit 009b0f712a
2 changed files with 3 additions and 2 deletions

View file

@ -1,5 +1,5 @@
export GOPATH=~/go
export GOPATH=`realpath "$HOME/go"`
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
export PATH=$HOME/tools:$PATH
export PATH=$GOPATH/bin:$PATH

View file

@ -181,7 +181,8 @@ if [[ -z $NOVIM ]]; then
fi
if [[ -z $NO_GO ]]; then
export GOPATH="$HOME/go"
GOPATH="$HOME/go"
export GOPATH=`realpath "$GOPATH"`
mkdir -p "$GOPATH"
# excercism