summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-01-29 17:12:37 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-01-29 17:12:37 +0000
commit7bfe9e5ba1047dc095e10f166e05a3654bfa6939 (patch)
tree4929e3914dc2c5b97dd93a79f2e0fccfae2dbbce
parentUpdate version. (diff)
downloadeselect-python-7bfe9e5ba1047dc095e10f166e05a3654bfa6939.tar.gz
eselect-python-7bfe9e5ba1047dc095e10f166e05a3654bfa6939.tar.bz2
eselect-python-7bfe9e5ba1047dc095e10f166e05a3654bfa6939.zip
Avoid potential printing of empty line.
-rw-r--r--python.eselect8
1 files changed, 6 insertions, 2 deletions
diff --git a/python.eselect b/python.eselect
index 1097de1..3ebfbfb 100644
--- a/python.eselect
+++ b/python.eselect
@@ -190,9 +190,13 @@ do_show() {
fi
if [[ "${ABI}" == "1" ]]; then
- echo "${interpreter#python}"
+ echo -n "${interpreter#python}"
else
- echo "${interpreter}"
+ echo -n "${interpreter}"
+ fi
+
+ if [[ -n "${interpreter}" ]]; then
+ echo
fi
}