diff options
author | Marius Bakke <mbakke@fastmail.com> | 2017-10-28 01:19:01 +0200 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2017-11-01 20:29:32 +0100 |
commit | 2c16be569c0ed21a44c615fb1285aeacd4ee7480 (patch) | |
tree | 60b412da8623eb3f0d184cca5c4d46b3b299da79 /gnu | |
parent | 0ab59dd8b8b64d4cd58c42a21e056a6cc8adc0bb (diff) | |
download | guix-2c16be569c0ed21a44c615fb1285aeacd4ee7480.tar.gz |
system: Return early in skeleton '.bashrc' when the shell is non-interactive.
* gnu/system/shadow.scm (default-skeletons)[bashrc]: Add return statement.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/system/shadow.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm index 58613e620d..b66239787e 100644 --- a/gnu/system/shadow.scm +++ b/gnu/system/shadow.scm @@ -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'. |