From 3a9590a8a379eda6d29250c4e9c1a5ae38a31b9d Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Sun, 16 Feb 2025 17:11:45 +0530 Subject: [PATCH] chore(nix): fix newline in middle of jq command --- dev.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dev.nix b/dev.nix index d712bd4..d9b6315 100644 --- a/dev.nix +++ b/dev.nix @@ -70,8 +70,7 @@ let #!/bin/bash set -euo pipefail - version=$(toml2json $src | jq -r '.graph | with_entries(select(.key | test("^${package}"))) | to_entries[0].key | capture("(@(?[^ ]+))") | .version') + version=$(toml2json $src | jq -r '.graph | with_entries(select(.key | test("^${package}"))) | to_entries[0].key | capture("(@(?[^ ]+))") | .version') if [[ "${exeName}" = "stylua" ]]; then # Special case for stylua which has versions that start with `v` version="v$version"