From 555dc04d217a9cfb2f7dfea28d498d60118cf2e5 Mon Sep 17 00:00:00 2001 From: "Lockszmith (@VAST)" Date: Thu, 10 Apr 2025 09:56:30 -0400 Subject: [PATCH] Cleaner syntax on long line --- _src.posix/.chezmoiexternal.yaml.tmpl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/_src.posix/.chezmoiexternal.yaml.tmpl b/_src.posix/.chezmoiexternal.yaml.tmpl index fdfccaa..a5d68dd 100644 --- a/_src.posix/.chezmoiexternal.yaml.tmpl +++ b/_src.posix/.chezmoiexternal.yaml.tmpl @@ -267,7 +267,12 @@ {{- if and (env "TELEPORT_MAJOR") (not (eq .chezmoi.os "windows")) -}} {{- with $app_name := "tsh" -}} {{- with $repo := (printf "%s/%s" "gravitational" "teleport") -}} -{{- with $version := (gitHubReleases $repo | toJson | fromJson | jq (printf "map(select(.tag_name | startswith(\"v%s\")))[0] | .tag_name" (env "TELEPORT_MAJOR")) | first ) -}} +{{- with $version := (gitHubReleases $repo | toJson | fromJson | jq ( + printf + "map(select(.tag_name | startswith(\"v%s\")))[0] | .tag_name" + (env "TELEPORT_MAJOR")) + | first +) -}} {{- $_ := set $externals (printf ".local/bin/%s" $app_name) (dict "type" "archive-file" "url" (printf "https://cdn.teleport.dev/teleport-%s-%s-bin.tar.gz" $version $myArch)