Usually there is one, but don't print an error if there is no one. Signed-off-by: Bernhard Walle <bernh...@bwalle.de> --- bin/ptxdist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/ptxdist b/bin/ptxdist index 440a7aa..37ab098 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -1656,8 +1656,8 @@ parse_second() if [ ${#} -eq 0 ]; then local bashrc="${PTXDIST_TEMPDIR}/bashrc" cat > "${bashrc}" <<EOF -. /etc/bash.bashrc -. ~/.bashrc +[ -r /etc/bash.bashrc ] && . /etc/bash.bashrc +[ -r ~/.bashrc ] && . ~/.bashrc PS1="[ptx] \${PS1}" PATH="${PATH}" EOF -- 1.7.9.4 -- ptxdist mailing list ptxdist@pengutronix.de