diff options
author | Ulrich Müller <ulm@gentoo.org> | 2012-09-15 22:34:08 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2012-09-15 22:34:08 +0200 |
commit | 08806f2a29db0d9c182ab5b54a6943b3ebb65f0d (patch) | |
tree | c8d6e564141ec1622cbd07be6b38f72433a90991 /libs | |
parent | Update man pages for editor, pager, and visual modules. (diff) | |
download | eselect-08806f2a29db0d9c182ab5b54a6943b3ebb65f0d.tar.gz eselect-08806f2a29db0d9c182ab5b54a6943b3ebb65f0d.tar.bz2 eselect-08806f2a29db0d9c182ab5b54a6943b3ebb65f0d.zip |
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.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/editor-variable.bash.in | 3 |
1 files changed, 2 insertions, 1 deletions
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 ### |