Skip to content

Commit

Permalink
chore(docs): fixup code formatting for $PATH (#874)
Browse files Browse the repository at this point in the history
  • Loading branch information
EverlastingBugstopper authored Oct 19, 2021
1 parent 9d03fad commit fb15153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/ci-cd.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Rover can be installed like many other CLI tools, but the installation method va

Normally, when installing, Rover adds the path of its executable to your `$PATH`. CircleCI, however, doesn't use the `$PATH` variable between run `step`s, so if you were to just install Rover and try to run it in the next step, you'd get a `command not found: rover` error.

To fix this, you can modify the `$PATH` and append it to [`$BASH_ENV`](https://circleci.com/docs/2.0/env-vars/#setting-an-environment-variable-in-a-shell-command). `$BASH_ENV` is executed at the beginning of each step, allowing any changes added to it to be run across steps. You can add rover to your $PATH` using `$BASH_ENV` like this:
To fix this, you can modify the `$PATH` and append it to [`$BASH_ENV`](https://circleci.com/docs/2.0/env-vars/#setting-an-environment-variable-in-a-shell-command). `$BASH_ENV` is executed at the beginning of each step, allowing any changes added to it to be run across steps. You can add rover to your `$PATH` using `$BASH_ENV` like this:

```bash
echo 'export PATH=$HOME/.rover/bin:$PATH' >> $BASH_ENV
Expand Down

0 comments on commit fb15153

Please sign in to comment.