From d2ee06487533c604802c06c029671ce3fb98597d Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Thu, 30 Jan 2020 15:36:16 -0500 Subject: [PATCH] updated inits to handle missing default bash config --- infobase/feisty_inits/dot.bashrc-normal-user | 8 +++++--- infobase/feisty_inits/dot.bashrc-root | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/infobase/feisty_inits/dot.bashrc-normal-user b/infobase/feisty_inits/dot.bashrc-normal-user index 615970aa..f64bbcfc 100644 --- a/infobase/feisty_inits/dot.bashrc-normal-user +++ b/infobase/feisty_inits/dot.bashrc-normal-user @@ -5,9 +5,11 @@ ############## -# drag in the default version of this file. this may not be needed if your -# .bashrc script already has substantial code or already does this. -source /etc/bash.bashrc +if [ -f /etc/bash.bashrc ]; then + # drag in the default version of this file. this may not be needed if your + # .bashrc script already has substantial code or already does this. + source /etc/bash.bashrc +fi ############## diff --git a/infobase/feisty_inits/dot.bashrc-root b/infobase/feisty_inits/dot.bashrc-root index e0facb15..b3ff3381 100644 --- a/infobase/feisty_inits/dot.bashrc-root +++ b/infobase/feisty_inits/dot.bashrc-root @@ -5,9 +5,11 @@ ############## -# drag in the default version of this file. this may not be needed if your -# .bashrc script already has substantial code or already does this. -source /etc/bash.bashrc +if [ -f /etc/bash.bashrc ]; then + # drag in the default version of this file. this may not be needed if your + # .bashrc script already has substantial code or already does this. + source /etc/bash.bashrc +fi ############## -- 2.34.1