fix(nixos): change grep to not use perl regexp so MacOS/BSD are happier
This commit is contained in:
parent
0f8d56d2c8
commit
66a0af3a92
2
quickget
2
quickget
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue