diff options
author | eroen <eroen@occam.eroen.eu> | 2014-09-09 00:08:08 +0200 |
---|---|---|
committer | eroen <eroen@occam.eroen.eu> | 2014-09-09 00:08:08 +0200 |
commit | baf86a3109da60720b1b792744673ee020c7647a (patch) | |
tree | d8d1f4c3a1b9b7546d98ce772a3066d767c28884 /wine.eselect | |
parent | Highlight active version in list (diff) | |
download | eselect-wine-baf86a3109da60720b1b792744673ee020c7647a.tar.gz eselect-wine-baf86a3109da60720b1b792744673ee020c7647a.tar.bz2 eselect-wine-baf86a3109da60720b1b792744673ee020c7647a.zip |
Fix sorting functionv0.1
Diffstat (limited to 'wine.eselect')
-rw-r--r-- | wine.eselect | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wine.eselect b/wine.eselect index 0950b2a..3a66b4d 100644 --- a/wine.eselect +++ b/wine.eselect @@ -35,8 +35,8 @@ sort_kernel_versions() { # 2.6.29 0 linux-2.6.29-rc8 # 2. sort --version-sort # 3. Run sed again to remove the prepended keys from step 1. - sed -e 's/^\(linux-\)\?\([[:digit:].]\+\)[-_]rc/\2 0 &/' \ - -e 't;s/^\(linux-\)\?\([[:digit:].]\+\)/\2 1 &/' \ + sed -e 's/^\(wine-\)\?\([[:digit:].]\+\)[-_]rc/\2 0 &/' \ + -e 't;s/^\(wine-\)\?\([[:digit:].]\+\)/\2 1 &/' \ | LC_ALL=C ${vsort} | sed 's/.* //' } |