mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] ptxdist: Don't assume that we have a bashrc
@ 2012-03-20 19:46 Bernhard Walle
  2012-03-20 22:15 ` Alexander Dahl
  0 siblings, 1 reply; 5+ messages in thread
From: Bernhard Walle @ 2012-03-20 19:46 UTC (permalink / raw)
  To: ptxdist

Usually there is one, but don't print an error if there is no one.

Signed-off-by: Bernhard Walle <bernhard@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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-03-21  8:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-20 19:46 [ptxdist] [PATCH] ptxdist: Don't assume that we have a bashrc Bernhard Walle
2012-03-20 22:15 ` Alexander Dahl
2012-03-21  6:17   ` Bernhard Walle
2012-03-21  8:40     ` Alexander Dahl
2012-03-21  8:43       ` Bernhard Walle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox