Paths
This commit is contained in:
parent
12b4b929ea
commit
d5ba1eb946
|
@ -10336,11 +10336,9 @@ function install_ipfs {
|
|||
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
|
||||
echo 'export PATH="$GOPATH/bin:$PATH:";' >> ~/.bashrc
|
||||
echo -n 'export PATH="$PATH:' >> ~/.bashrc
|
||||
echo "$IPFS_PATH\";" >> ~/.bashrc
|
||||
fi
|
||||
. ~/.bashrc
|
||||
|
||||
|
@ -10348,8 +10346,6 @@ function install_ipfs {
|
|||
if ! grep -q "GOPATH=" /home/$MY_USERNAME/.bashrc; then
|
||||
echo 'export GOPATH=/home/git/go' >> /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
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue