aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2017-10-28 01:19:01 +0200
committerMarius Bakke <mbakke@fastmail.com>2017-11-01 20:29:32 +0100
commit2c16be569c0ed21a44c615fb1285aeacd4ee7480 (patch)
tree60b412da8623eb3f0d184cca5c4d46b3b299da79
parent0ab59dd8b8b64d4cd58c42a21e056a6cc8adc0bb (diff)
downloadgnu-guix-2c16be569c0ed21a44c615fb1285aeacd4ee7480.tar
gnu-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.
-rw-r--r--gnu/system/shadow.scm3
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'.