diff options
-rw-r--r-- | postgresql.eselect | 6 |
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 } |