diff options
author | P. 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) |
commit | 00d86529d44b1b9c7992a99cde4154d69254735c (patch) | |
tree | f49a6821695caa077e5234f48a5e4be4a0d28947 /.bashrc | |
parent | cbd83152c91dc10492a979e2640e4416d2b39849 (diff) | |
download | bash-00d86529d44b1b9c7992a99cde4154d69254735c.zip bash-00d86529d44b1b9c7992a99cde4154d69254735c.tar.gz bash-00d86529d44b1b9c7992a99cde4154d69254735c.tar.bz2 |
.bashrc: Don't run-parts under chroot
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |