From 66a0af3a921744ed99b5755ff7e9b0f769d8d549 Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Fri, 18 Oct 2024 11:58:17 +0100 Subject: [PATCH] fix(nixos): change grep to not use perl regexp so MacOS/BSD are happier --- quickget | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickget b/quickget index ab9cd3c..3ddc117 100755 --- a/quickget +++ b/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 '(?<=nixos-)[0-9]+.[0-9]+(?=)' | 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() {