fix(macchina): install script
This commit is contained in:
parent
946c8f35ba
commit
b37801de19
1 changed files with 3 additions and 3 deletions
|
@ -6,10 +6,10 @@ brew install macchina
|
|||
{{- else if eq .chezmoi.os "linux" }}
|
||||
{{ if ne .chezmoi.uid "0" }} sudo {{ end -}}mkdir -p /usr/local/bin
|
||||
{{- 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" }}
|
||||
{{ 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-aarch64
|
||||
{{ 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-aarch64
|
||||
{{- end }}
|
||||
chmod +x /usr/local/bin/macchina
|
||||
{{ if ne .chezmoi.uid "0" }} sudo {{ end -}}chmod +x /usr/local/bin/macchina
|
||||
{{- end }}
|
||||
{{- end }}
|
Loading…
Reference in a new issue