mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-07 20:31:01 -05:00
Fix .bashrc echo
install syntax error (#1965)
Change `done` to `fi` since otherwise Bash emits an unexpected token error: ``` bash: /home/foo/.bashrc: line 120: syntax error near unexpected token `done' bash: /home/foo/.bashrc: line 120: `if command -v pyenv >/dev/null; then eval "$(pyenv init -)"; done' ```
This commit is contained in:
parent
83056fc404
commit
6633382417
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ easy to fork and contribute any changes back upstream.
|
||||||
- **If your `/etc/profile` sources `~/.bashrc` (SUSE):**
|
- **If your `/etc/profile` sources `~/.bashrc` (SUSE):**
|
||||||
|
|
||||||
~~~bash
|
~~~bash
|
||||||
echo 'if command -v pyenv >/dev/null; then eval "$(pyenv init -)"; done' >> ~/.bashrc
|
echo 'if command -v pyenv >/dev/null; then eval "$(pyenv init -)"; fi' >> ~/.bashrc
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
- For **Zsh**:
|
- For **Zsh**:
|
||||||
|
|
Loading…
Reference in a new issue