fix: ensure macchina bin dir exists
This commit is contained in:
parent
9512341ece
commit
946c8f35ba
1 changed files with 1 additions and 0 deletions
|
@ -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" }}
|
||||||
|
|
Loading…
Reference in a new issue