This commit is contained in:
Bob Mottram 2015-09-29 19:34:35 +01:00
parent 12b4b929ea
commit d5ba1eb946
1 changed files with 1 additions and 5 deletions

View File

@ -10336,11 +10336,9 @@ function install_ipfs {
fi fi
fi fi
IPFS_PATH=/home/git/go/src/github.com/ipfs/go-ipfs/cmd IPFS_PATH=/home/git/go/bin
if ! grep -q 'GOPATH/bin' ~/.bashrc; then if ! grep -q 'GOPATH/bin' ~/.bashrc; then
echo 'export PATH="$GOPATH/bin:$PATH:";' >> ~/.bashrc echo 'export PATH="$GOPATH/bin:$PATH:";' >> ~/.bashrc
echo -n 'export PATH="$PATH:' >> ~/.bashrc
echo "$IPFS_PATH\";" >> ~/.bashrc
fi fi
. ~/.bashrc . ~/.bashrc
@ -10348,8 +10346,6 @@ function install_ipfs {
if ! grep -q "GOPATH=" /home/$MY_USERNAME/.bashrc; then if ! grep -q "GOPATH=" /home/$MY_USERNAME/.bashrc; then
echo 'export GOPATH=/home/git/go' >> /home/$MY_USERNAME/.bashrc echo 'export GOPATH=/home/git/go' >> /home/$MY_USERNAME/.bashrc
echo 'export PATH="$GOPATH/bin:$PATH:";' >> /home/$MY_USERNAME/.bashrc echo 'export PATH="$GOPATH/bin:$PATH:";' >> /home/$MY_USERNAME/.bashrc
echo 'export PATH="$PATH:' >> /home/$MY_USERNAME/.bashrc
echo "$IPFS_PATH\";" >> /home/$MY_USERNAME/.bashrc
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.bashrc chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.bashrc
fi fi