From: Chris Koeritz Date: Thu, 30 Jan 2020 20:36:16 +0000 (-0500) Subject: updated inits to handle missing default bash config X-Git-Tag: 2.140.134~29 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=01e6accabd278db7682d62d388e21401cd84e5fb;p=feisty_meow.git updated inits to handle missing default bash config --- 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 ##############