fix: ensure macchina bin dir exists

This commit is contained in:
Peter 2023-10-11 21:44:43 +02:00
parent 9512341ece
commit 946c8f35ba
No known key found for this signature in database

View file

@ -4,6 +4,7 @@
{{- if eq .chezmoi.os "darwin" }} {{- if eq .chezmoi.os "darwin" }}
brew install macchina brew install macchina
{{- else if eq .chezmoi.os "linux" }} {{- else if eq .chezmoi.os "linux" }}
{{ if ne .chezmoi.uid "0" }} sudo {{ end -}}mkdir -p /usr/local/bin
{{- if eq .chezmoi.arch "amd64" }} {{- if eq .chezmoi.arch "amd64" }}
{{ if ne .chezmoi.uid "0" }} sudo {{ end -}}curl -LO /usr/local/bin/macchina https://github.com/Macchina-CLI/macchina/releases/download/{{ (gitHubLatestRelease "Macchina-CLI/macchina").TagName }}/macchina-linux-x86_64 {{ if ne .chezmoi.uid "0" }} sudo {{ end -}}curl -LO /usr/local/bin/macchina https://github.com/Macchina-CLI/macchina/releases/download/{{ (gitHubLatestRelease "Macchina-CLI/macchina").TagName }}/macchina-linux-x86_64
{{- else if .chezmoi.arch "arm64" }} {{- else if .chezmoi.arch "arm64" }}