home: services: bash: Only source /etc/bashrc if it exists.

* gnu/home/services/shells.scm (home-bash-configuration):
Check whether /etc/bashrc exists before trying to ‘source’ it.

Reported by guixy on #guix.
This commit is contained in:
Tobias Geerinckx-Rice 2021-11-24 19:44:49 +01:00
parent c47a45ca7e
commit a4cbd31c5c
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 3 additions and 1 deletions

View File

@ -390,7 +390,9 @@ then
fi
# Source the system-wide file.
source /etc/bashrc
if [[ -e /etc/bashrc ]]; then
source /etc/bashrc
fi
# Adjust the prompt depending on whether we're in 'guix environment'.
if [ -n \"$GUIX_ENVIRONMENT\" ]