diff options
-rw-r--r-- | postgresql.eselect | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/postgresql.eselect b/postgresql.eselect index 8dfe284..55c970d 100644 --- a/postgresql.eselect +++ b/postgresql.eselect @@ -47,8 +47,13 @@ linker() { local target_dir=$3 local suffix=$4 local link_source + local findings + + set -f + findings=$(find "${source_dir}" -maxdepth 1 -mindepth 1 ${pattern}) + set +f - for link_source in $(find "${source_dir}" -maxdepth 1 -mindepth 1 ${pattern}) ; do + for link_source in ${findings} ; do local link_target="${target_dir%/}/$(basename ${link_source})${suffix}" # For good measure, remove target before creating the symlink @@ -194,7 +199,7 @@ do_set() { echo "${B_PATH}/${x}/postgresql" >> "${E_PATH}"/active.links # Linker works for files linker "${B_PATH}/${x}/postgresql-${SLOT}/${x}" \ - "-name lib*" "${B_PATH}/${x}" + '-name lib*' "${B_PATH}/${x}" fi done |