fix(nixos): change grep to not use perl regexp so MacOS/BSD are happier

This commit is contained in:
Phil Clifford 2024-10-18 11:58:17 +01:00 committed by Phil Clifford
parent 0f8d56d2c8
commit 66a0af3a92
1 changed files with 1 additions and 1 deletions

View File

@ -842,7 +842,7 @@ function releases_nitrux() {
function releases_nixos() {
# Lists unstable plus the two most recent releases
#shellcheck disable=SC2046
echo unstable $(web_pipe "https://nix-channels.s3.amazonaws.com/?delimiter=/" | grep -o -P '(?<=<Key>nixos-)[0-9]+.[0-9]+(?=</Key>)' | sort -nr | head -n +2)
echo unstable $(web_pipe "https://nix-channels.s3.amazonaws.com/?delimiter=/" | grep -o -E 'nixos-[[:digit:]]+\.[[:digit:]]+' | cut -d- -f2 | sort -nru | head -n +2)
}
function editions_nixos() {