Reload bashrc
This commit is contained in:
parent
469c849d44
commit
a7409d0cdc
|
@ -27,11 +27,11 @@ function install_ipfs {
|
||||||
echo "export GOPATH=/home/$MY_USERNAME/go" >> /home/$MY_USERNAME/.bashrc
|
echo "export GOPATH=/home/$MY_USERNAME/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
|
||||||
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.bashrc
|
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.bashrc
|
||||||
. ~/.bashrc
|
|
||||||
fi
|
fi
|
||||||
if [ ! -d /home/$MY_USERNAME/go ]; then
|
if [ ! -d /home/$MY_USERNAME/go ]; then
|
||||||
mkdir /home/$MY_USERNAME/go
|
mkdir /home/$MY_USERNAME/go
|
||||||
fi
|
fi
|
||||||
|
. /home/$MY_USERNAME/.bashrc
|
||||||
go get -u github.com/ipfs/go-ipfs/cmd/ipfs
|
go get -u github.com/ipfs/go-ipfs/cmd/ipfs
|
||||||
if [ ! "$?" = "0" ]; then
|
if [ ! "$?" = "0" ]; then
|
||||||
exit 8242
|
exit 8242
|
||||||
|
|
Loading…
Reference in New Issue