Make sure jq is installed before attempting to use it

This commit is contained in:
Lockszmith (wsl@Sygin) 2025-04-12 09:37:57 -04:00
parent 811e646945
commit efc7e2c29c
1 changed files with 2 additions and 1 deletions

View File

@ -99,6 +99,7 @@
"refreshPeriod" $defaultRefresh "refreshPeriod" $defaultRefresh
) -}}{{- end -}}{{- end -}}{{- end -}} ) -}}{{- end -}}{{- end -}}{{- end -}}
{{- if lookPath "jq" -}}
{{- with $app_name := "eza" -}} {{- with $app_name := "eza" -}}
{{- with $bin_url := (output "sh" "-c" ( {{- with $bin_url := (output "sh" "-c" (
list list
@ -134,6 +135,7 @@
"executable" true "executable" true
"refreshPeriod" $defaultRefresh "refreshPeriod" $defaultRefresh
) -}}{{- end -}}{{- end -}}{{- end -}} ) -}}{{- end -}}{{- end -}}{{- end -}}
{{- end -}}
{{/* {{/*
# valid arch strings: # valid arch strings:
@ -331,4 +333,3 @@
executable: true executable: true
refreshPeriod: "{{ $defaultRefresh }}" refreshPeriod: "{{ $defaultRefresh }}"
{{- end -}} {{- end -}}