Skip to content

Update source command #156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ No prerequisites are needed for macOS.
git clone https://github.com/esp-rs/rust-build.git
cd rust-build
./install-rust-toolchain.sh
. export-esp.sh
. ./export-esp.sh
```

Run `./install-rust-toolchain.sh --help` for more information about arguments.
Expand All @@ -81,7 +81,7 @@ Installation of different version of the toolchain:

```
./install-rust-toolchain.sh --toolchain-version 1.65.0.0
. export-esp.sh
. ./export-esp.sh
```

#### Set up the environment variables
Expand Down
2 changes: 1 addition & 1 deletion install-rust-toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ printf "\n If you want to activate the environment required for Rust in ESP SoC'
printf "\n However, it is not recommended, as doing so activates the virtual environment in every terminal session (including those where is not needed), defeating the purpose of the virtual environment and likely affecting other software."

if [[ -n "${EXPORT_FILE:-}" ]]; then
printf "\n The recommended approach is to source the export file: \". ${EXPORT_FILE}\""
printf "\n The recommended approach is to source the export file: \". ./${EXPORT_FILE}\""
printf "\n Note: This should be done in every terminal session.\n"
echo -n "" >"${EXPORT_FILE}"
if [[ ${IS_XTENSA_INSTALLED} -eq 1 ]]; then
Expand Down