Fix eza in different platforms
This commit is contained in:
parent
efc7e2c29c
commit
5629133ec3
|
@ -100,6 +100,7 @@
|
||||||
) -}}{{- end -}}{{- end -}}{{- end -}}
|
) -}}{{- end -}}{{- end -}}{{- end -}}
|
||||||
|
|
||||||
{{- if lookPath "jq" -}}
|
{{- if lookPath "jq" -}}
|
||||||
|
{{- $path_prefix := or (get (dict "linux" "./") .chezmoi.os) "" -}}
|
||||||
{{- with $app_name := "eza" -}}
|
{{- with $app_name := "eza" -}}
|
||||||
{{- with $bin_url := (output "sh" "-c" (
|
{{- with $bin_url := (output "sh" "-c" (
|
||||||
list
|
list
|
||||||
|
@ -113,7 +114,7 @@
|
||||||
{{- $_ := set $externals (printf ".local/bin/%s" $app_name) (dict
|
{{- $_ := set $externals (printf ".local/bin/%s" $app_name) (dict
|
||||||
"type" "archive-file"
|
"type" "archive-file"
|
||||||
"url" $bin_url
|
"url" $bin_url
|
||||||
"path" $app_name
|
"path" (printf "%s%s" $path_prefix $app_name)
|
||||||
"executable" true
|
"executable" true
|
||||||
"refreshPeriod" $defaultRefresh
|
"refreshPeriod" $defaultRefresh
|
||||||
) -}}{{- end -}}{{- end -}}{{- end -}}
|
) -}}{{- end -}}{{- end -}}{{- end -}}
|
||||||
|
|
Loading…
Reference in New Issue