From 709be5af81b549225316f056f7c4f121c9e9200a Mon Sep 17 00:00:00 2001 From: Wing Lian Date: Mon, 8 May 2023 11:45:38 -0400 Subject: [PATCH] use printf instead of echo in dockerfile for portability --- docker/Dockerfile-runpod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile-runpod b/docker/Dockerfile-runpod index cf47b3670..f7dac3003 100644 --- a/docker/Dockerfile-runpod +++ b/docker/Dockerfile-runpod @@ -4,7 +4,7 @@ FROM winglian/axolotl:$BASE_TAG RUN apt install --yes --no-install-recommends openssh-server tmux && \ mkdir -p ~/.ssh && \ chmod 700 ~/.ssh && \ - echo -e "\n[[ -z \"\$TMUX\" ]] && { tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux; exit; }" >> ~/.bashrc && \ + printf "\n[[ -z \"\$TMUX\" ]] && { tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux; exit; }\n" >> ~/.bashrc && \ chmod +x /workspace/axolotl/scripts/runpod-entrypoint.sh ENTRYPOINT ["/workspace/axolotl/scripts/runpod-entrypoint.sh"]