From 66333824176df28602e99f324d947710551a282c Mon Sep 17 00:00:00 2001 From: Philip Howard Date: Wed, 2 Jun 2021 22:12:58 +0100 Subject: [PATCH] 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' ``` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e0ba8605..0d10e54f 100644 --- a/README.md +++ b/README.md @@ -314,7 +314,7 @@ easy to fork and contribute any changes back upstream. - **If your `/etc/profile` sources `~/.bashrc` (SUSE):** ~~~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**: