diff options
author | 2011-04-21 19:30:36 -0400 | |
---|---|---|
committer | 2011-04-21 19:30:36 -0400 | |
commit | b787eaa07f179e97f29176efcce0c601b2292c9e (patch) | |
tree | b7189b89717ba64d19983e12814e2cbe9ebf62e3 | |
parent | '-printf' is GNU extension of the find utility. Additionally, the regex that was (diff) | |
download | eselect-b787eaa07f179e97f29176efcce0c601b2292c9e.tar.gz eselect-b787eaa07f179e97f29176efcce0c601b2292c9e.tar.bz2 eselect-b787eaa07f179e97f29176efcce0c601b2292c9e.zip |
This time with the proper regex.
-rw-r--r-- | postgresql.eselect | 2 |
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) } |