system: Return early in skeleton '.bashrc' when the shell is non-interactive.

* gnu/system/shadow.scm (default-skeletons)[bashrc]: Add return statement.
master
Marius Bakke 2017-10-28 01:19:01 +02:00
parent 0ab59dd8b8
commit 2c16be569c
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 3 additions and 0 deletions

View File

@ -163,6 +163,9 @@ then
# is an SSH session (as in \"ssh host command\"), source
# /etc/profile so we get PATH and other essential variables.
[[ -n \"$SSH_CLIENT\" ]] && source /etc/profile
# Don't do anything else.
return
fi
# Adjust the prompt depending on whether we're in 'guix environment'.