diff options
author | 2011-04-01 07:51:10 -0400 | |
---|---|---|
committer | 2011-04-01 07:51:10 -0400 | |
commit | bbb80be449b55d79003ab6692a6e28e579a3ecf7 (patch) | |
tree | a3060bc58d641d8a8990471828ff8422111da4d8 | |
parent | Fixed bitness test so that a false positive doesn't happen. (diff) | |
download | eselect-bbb80be449b55d79003ab6692a6e28e579a3ecf7.tar.gz eselect-bbb80be449b55d79003ab6692a6e28e579a3ecf7.tar.bz2 eselect-bbb80be449b55d79003ab6692a6e28e579a3ecf7.zip |
Fixed path so that it looks for something that'll actually exist.
-rw-r--r-- | postgresql.eselect | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/postgresql.eselect b/postgresql.eselect index 07b5383..e4cc599 100644 --- a/postgresql.eselect +++ b/postgresql.eselect @@ -25,10 +25,10 @@ active_slot() { lib_dir() { local lib_list=$(list_libdirs) if [[ ${lib_list} =~ .*lib64.* && \ - -n $(ls -d ${B_PATH}/lib64/postgresql-*/lib 2> /dev/null) ]] ; then + -n $(ls -d ${B_PATH}/lib64/postgresql-*/lib64 2> /dev/null) ]] ; then echo "lib64" elif [[ ${lib_list} =~ .*lib32.* && \ - -n $(ls -d ${B_PATH}/lib32/postgresql-*/lib 2> /dev/null) ]] ; then + -n $(ls -d ${B_PATH}/lib32/postgresql-*/lib32 2> /dev/null) ]] ; then echo "lib32" else echo "lib" |