Skip to content

Commit

Permalink
Use printf instead of echo for constant newline handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ageron committed Oct 19, 2021
1 parent 55fafe0 commit 24efc9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/*

COPY environment.yml /tmp/
RUN echo "\n - pyvirtualdisplay" >> /tmp/environment.yml \
RUN printf "\n - pyvirtualdisplay" >> /tmp/environment.yml \
&& conda env create -f /tmp/environment.yml \
&& conda clean -afy \
&& find /opt/conda/ -follow -type f -name '*.a' -delete \
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.gpu
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ RUN set -x && \
# Now we're ready to create our conda environment

COPY environment.yml /tmp/
RUN echo "\n - pyvirtualdisplay" >> /tmp/environment.yml \
RUN printf "\n - pyvirtualdisplay" >> /tmp/environment.yml \
&& conda env create -f /tmp/environment.yml \
&& conda clean -afy \
&& find /opt/conda/ -follow -type f -name '*.a' -delete \
Expand Down

0 comments on commit 24efc9b

Please sign in to comment.