summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2024-03-16 08:26:02 (EDT)
committer P. J. McDermott <pj@pehjota.net>2024-03-16 08:26:02 (EDT)
commit00d86529d44b1b9c7992a99cde4154d69254735c (patch)
treef49a6821695caa077e5234f48a5e4be4a0d28947
parentcbd83152c91dc10492a979e2640e4416d2b39849 (diff)
downloadbash-00d86529d44b1b9c7992a99cde4154d69254735c.zip
bash-00d86529d44b1b9c7992a99cde4154d69254735c.tar.gz
bash-00d86529d44b1b9c7992a99cde4154d69254735c.tar.bz2
.bashrc: Don't run-parts under chroot
-rw-r--r--.bashrc8
1 files changed, 5 insertions, 3 deletions
diff --git a/.bashrc b/.bashrc
index d53755a..f378a33 100644
--- a/.bashrc
+++ b/.bashrc
@@ -44,6 +44,8 @@ fi
# Set DISPLAY for SSH sessions.
{ read -r DISPLAY 0<~/.xdisplay && export DISPLAY; } 2>/dev/null || :
-for f in $(run-parts --list ~/.bashrc.d); do
- . "${f}"
-done
+if ! [ -r /etc/debian_chroot ]; then
+ for f in $(run-parts --list ~/.bashrc.d); do
+ . "${f}"
+ done
+fi