aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron W. Swenson <titanofold@gentoo.org>2011-04-01 07:48:17 -0400
committerAaron W. Swenson <titanofold@gentoo.org>2011-04-01 07:48:17 -0400
commit0bb7d06bb13db7b063004bba9bdc8cac53ebb3df (patch)
tree75b8fd6d08b28ebf3e189b7b5d34dc6eab0afb6e /postgresql.eselect
parentPath quoting complete, and remove the path quoting inside [[ ]]. (diff)
downloadeselect-0bb7d06bb13db7b063004bba9bdc8cac53ebb3df.tar.gz
eselect-0bb7d06bb13db7b063004bba9bdc8cac53ebb3df.tar.bz2
eselect-0bb7d06bb13db7b063004bba9bdc8cac53ebb3df.zip
Fixed bitness test so that a false positive doesn't happen.
Remove another set of quotes within [[ ]].
Diffstat (limited to 'postgresql.eselect')
-rw-r--r--postgresql.eselect6
1 files changed, 3 insertions, 3 deletions
diff --git a/postgresql.eselect b/postgresql.eselect
index 84e1167..07b5383 100644
--- a/postgresql.eselect
+++ b/postgresql.eselect
@@ -25,10 +25,10 @@ active_slot() {
lib_dir() {
local lib_list=$(list_libdirs)
if [[ ${lib_list} =~ .*lib64.* && \
- $(ls -d ${B_PATH}/lib64/postgresql-*/lib) != "" ]] ; then
+ -n $(ls -d ${B_PATH}/lib64/postgresql-*/lib 2> /dev/null) ]] ; then
echo "lib64"
elif [[ ${lib_list} =~ .*lib32.* && \
- $(ls -d ${B_PATH}/lib32/postgresql-*/lib) != "" ]] ; then
+ -n $(ls -d ${B_PATH}/lib32/postgresql-*/lib 2> /dev/null) ]] ; then
echo "lib32"
else
echo "lib"
@@ -113,7 +113,7 @@ do_list() {
esac
done
- [[ -z "${postgres_ebuilds}" ]] && write_warning_msg "No slots available."
+ [[ -z ${postgres_ebuilds} ]] && write_warning_msg "No slots available."
fi
}