system: Return early in skeleton '.bashrc' when the shell is non-interactive.
* gnu/system/shadow.scm (default-skeletons)[bashrc]: Add return statement.
This commit is contained in:
parent
0ab59dd8b8
commit
2c16be569c
|
@ -163,6 +163,9 @@ then
|
||||||
# is an SSH session (as in \"ssh host command\"), source
|
# is an SSH session (as in \"ssh host command\"), source
|
||||||
# /etc/profile so we get PATH and other essential variables.
|
# /etc/profile so we get PATH and other essential variables.
|
||||||
[[ -n \"$SSH_CLIENT\" ]] && source /etc/profile
|
[[ -n \"$SSH_CLIENT\" ]] && source /etc/profile
|
||||||
|
|
||||||
|
# Don't do anything else.
|
||||||
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Adjust the prompt depending on whether we're in 'guix environment'.
|
# Adjust the prompt depending on whether we're in 'guix environment'.
|
||||||
|
|
Loading…
Reference in New Issue