From ad6034ebad50d4c6758c629d8d8cf921e03172a6 Mon Sep 17 00:00:00 2001 From: Nick Morgan Date: Fri, 13 Mar 2020 21:09:15 -0500 Subject: [PATCH] exit bashrc if not running interactively enables sftp sessions --- tensorflow/tools/dockerfiles/bashrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tensorflow/tools/dockerfiles/bashrc b/tensorflow/tools/dockerfiles/bashrc index 48cacf20f64..d9dd7a671bc 100644 --- a/tensorflow/tools/dockerfiles/bashrc +++ b/tensorflow/tools/dockerfiles/bashrc @@ -14,6 +14,9 @@ # # ============================================================================== +# If not running interactively, don't do anything +[ -z "$PS1" ] && return + export PS1="\[\e[31m\]tf-docker\[\e[m\] \[\e[33m\]\w\[\e[m\] > " export TERM=xterm-256color alias grep="grep --color=auto"