diff --git a/.pending/bugfixes/gaia/3974-Fix-go-env-sett b/.pending/bugfixes/gaia/3974-Fix-go-env-sett new file mode 100644 index 000000000..e71f42b75 --- /dev/null +++ b/.pending/bugfixes/gaia/3974-Fix-go-env-sett @@ -0,0 +1 @@ +3974 Fix go env setting in installation.md \ No newline at end of file diff --git a/docs/gaia/installation.md b/docs/gaia/installation.md index 48f0f71a7..20e5ffa44 100644 --- a/docs/gaia/installation.md +++ b/docs/gaia/installation.md @@ -9,8 +9,8 @@ Install `go` by following the [official docs](https://golang.org/doc/install). R ```bash mkdir -p $HOME/go/bin echo "export GOPATH=$HOME/go" >> ~/.bash_profile -echo "export GOBIN=$GOPATH/bin" >> ~/.bash_profile -echo "export PATH=$PATH:$GOBIN" >> ~/.bash_profile +echo "export GOBIN=\$GOPATH/bin" >> ~/.bash_profile +echo "export PATH=\$PATH:\$GOBIN" >> ~/.bash_profile source ~/.bash_profile ``` diff --git a/docs/translations/cn/gaia/installation.md b/docs/translations/cn/gaia/installation.md index 043d6f7af..932ae6a52 100644 --- a/docs/translations/cn/gaia/installation.md +++ b/docs/translations/cn/gaia/installation.md @@ -9,8 +9,9 @@ ```bash mkdir -p $HOME/go/bin echo "export GOPATH=$HOME/go" >> ~/.bash_profile -echo "export GOBIN=$GOPATH/bin" >> ~/.bash_profile -echo "export PATH=$PATH:$GOBIN" >> ~/.bash_profile +echo "export GOBIN=\$GOPATH/bin" >> ~/.bash_profile +echo "export PATH=\$PATH:\$GOBIN" >> ~/.bash_profile +source ~/.bash_profile ``` ::: 提示 diff --git a/docs/translations/kr/gaia/installation.md b/docs/translations/kr/gaia/installation.md index 4eba582f3..5cfba9dea 100755 --- a/docs/translations/kr/gaia/installation.md +++ b/docs/translations/kr/gaia/installation.md @@ -7,10 +7,11 @@ 공식 [Go 문서](https://golang.org/doc/install)를 따라서 `go`를 설치하십시오. `$GOPATH`, `$GOBIN`, 그리고 `$PATH`의 환경을 꼭 세팅하세요. 예시: ```bash -mkdir -p $HOME/go/b4n +mkdir -p $HOME/go/bin echo "export GOPATH=$HOME/go" >> ~/.bash_profile -echo "export GOBIN=$GOPATH/bin" >> ~/.bash_profile -echo "export PATH=$PATH:$GOBIN" >> ~/.bash_profile +echo "export GOBIN=\$GOPATH/bin" >> ~/.bash_profile +echo "export PATH=\$PATH:\$GOBIN" >> ~/.bash_profile +source ~/.bash_profile ``` ::: tip