From efc7e2c29c9066a4acf820af1736a9d083c77169 Mon Sep 17 00:00:00 2001 From: "Lockszmith (wsl@Sygin)" Date: Sat, 12 Apr 2025 09:37:57 -0400 Subject: [PATCH] Make sure jq is installed before attempting to use it --- _src.posix/.chezmoiexternal.yaml.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_src.posix/.chezmoiexternal.yaml.tmpl b/_src.posix/.chezmoiexternal.yaml.tmpl index f13efff..dc65674 100644 --- a/_src.posix/.chezmoiexternal.yaml.tmpl +++ b/_src.posix/.chezmoiexternal.yaml.tmpl @@ -99,6 +99,7 @@ "refreshPeriod" $defaultRefresh ) -}}{{- end -}}{{- end -}}{{- end -}} +{{- if lookPath "jq" -}} {{- with $app_name := "eza" -}} {{- with $bin_url := (output "sh" "-c" ( list @@ -134,6 +135,7 @@ "executable" true "refreshPeriod" $defaultRefresh ) -}}{{- end -}}{{- end -}}{{- end -}} +{{- end -}} {{/* # valid arch strings: @@ -331,4 +333,3 @@ executable: true refreshPeriod: "{{ $defaultRefresh }}" {{- end -}} -