From 08806f2a29db0d9c182ab5b54a6943b3ebb65f0d Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Sat, 15 Sep 2012 22:34:08 +0200 Subject: Prefix /etc/profile with EROOT in output message, bug 429960. * libs/editor-variable.bash.in (do_set): * modules/locale.eselect (do_set): Output message only if ROOT is /, and prefix /etc/profile with EROOT, bug 429960. --- libs/editor-variable.bash.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs') diff --git a/libs/editor-variable.bash.in b/libs/editor-variable.bash.in index a431a4f..a8d4252 100644 --- a/libs/editor-variable.bash.in +++ b/libs/editor-variable.bash.in @@ -155,7 +155,8 @@ do_set() { # update profile do_action env update noldconfig - echo "Run \". /etc/profile\" to update the variable in your shell." + [[ ${ROOT:-/} = / ]] && echo \ + "Run \". ${EROOT}/etc/profile\" to update the variable in your shell." } ### update action ### -- cgit v1.2.3-65-gdbad