mirror of
https://github.com/nvm-sh/nvm.git
synced 2026-04-03 11:34:50 +08:00
[readme] use "$HOME" instead of hardcoded "/home/user"
For now, only "test/fast/Unit tests/nvm_change_path" uses "/home/user".
This commit is contained in:
@@ -146,7 +146,7 @@ When invoking bash as a non-interactive shell, like in a Docker container, none
|
|||||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||||
|
|
||||||
# Create a script file sourced by both interactive and non-interactive bash shells
|
# Create a script file sourced by both interactive and non-interactive bash shells
|
||||||
ENV BASH_ENV /home/user/.bash_env
|
ENV BASH_ENV $HOME/.bash_env
|
||||||
RUN touch "${BASH_ENV}"
|
RUN touch "${BASH_ENV}"
|
||||||
RUN echo '. "${BASH_ENV}"' >> ~/.bashrc
|
RUN echo '. "${BASH_ENV}"' >> ~/.bashrc
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user