aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2013-07-07 14:30:06 +0200
committerUlrich Müller <ulm@gentoo.org>2013-07-07 14:30:06 +0200
commiteeb450b9979960112388251e725ce4f6c70f184f (patch)
tree86187bd4797a9ae29b512cd019a6fc9500c14f88 /libs
parentUpdate version to 1.3.6. (diff)
downloadeselect-eeb450b9979960112388251e725ce4f6c70f184f.tar.gz
eselect-eeb450b9979960112388251e725ce4f6c70f184f.tar.bz2
eselect-eeb450b9979960112388251e725ce4f6c70f184f.zip
Fix return status in editor-variable lib and locale module, bug 473308.
* libs/editor-variable.bash.in (do_set): * modules/locale.eselect (do_set): Don't return bad status when ROOT is nontrivial, bug 473308. Thanks to <smkbot@gmail.com>.
Diffstat (limited to 'libs')
-rw-r--r--libs/editor-variable.bash.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/editor-variable.bash.in b/libs/editor-variable.bash.in
index 0ddea92..4de9736 100644
--- a/libs/editor-variable.bash.in
+++ b/libs/editor-variable.bash.in
@@ -155,8 +155,10 @@ do_set() {
# update profile
do_action env update noldconfig
- [[ ${ROOT:-/} = / ]] && echo \
- "Run \". ${EROOT}/etc/profile\" to update the variable in your shell."
+ if [[ ${ROOT:-/} = / ]]; then
+ echo "Run \". ${EROOT}/etc/profile\" to update the variable" \
+ "in your shell."
+ fi
}
### update action ###