aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron W. Swenson <titanofold@gentoo.org>2011-04-21 19:30:36 -0400
committerAaron W. Swenson <titanofold@gentoo.org>2011-04-21 19:30:36 -0400
commitb787eaa07f179e97f29176efcce0c601b2292c9e (patch)
treeb7189b89717ba64d19983e12814e2cbe9ebf62e3
parent'-printf' is GNU extension of the find utility. Additionally, the regex that was (diff)
downloadeselect-b787eaa07f179e97f29176efcce0c601b2292c9e.tar.gz
eselect-b787eaa07f179e97f29176efcce0c601b2292c9e.tar.bz2
eselect-b787eaa07f179e97f29176efcce0c601b2292c9e.zip
This time with the proper regex.
-rw-r--r--postgresql.eselect2
1 files changed, 1 insertions, 1 deletions
diff --git a/postgresql.eselect b/postgresql.eselect
index d42fda9..8dfe284 100644
--- a/postgresql.eselect
+++ b/postgresql.eselect
@@ -82,7 +82,7 @@ unlinker() {
# Find all available slots in the preferred lib_dir() and return them.
get_slots() {
echo $(find "${B_PATH}/$(lib_dir)" -maxdepth 1 -type d \
- -regex '.*postgresql-[0-9]+\.[0-9]+' | \
+ -regex '.*postgresql-[0-9][0-9]*\.[0-9][0-9]*' | \
sed -re 's#.*([0-9]+\.[0-9]+)$#\1#' | sort -n)
}