fix: install Go
This commit is contained in:
parent
f9bcf970fb
commit
e4d224785d
4 changed files with 7 additions and 3 deletions
|
@ -3,3 +3,7 @@ setup.sh
|
||||||
{{ if eq .chezmoi.os "darwin" }}
|
{{ if eq .chezmoi.os "darwin" }}
|
||||||
*/hypr/
|
*/hypr/
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if eq .chezmoi.os "linux" }}
|
||||||
|
*/Library/*
|
||||||
|
{{ end }}
|
|
@ -3,6 +3,6 @@
|
||||||
{{- if eq .chezmoi.os "darwin" }}
|
{{- if eq .chezmoi.os "darwin" }}
|
||||||
brew install go
|
brew install go
|
||||||
{{- else if eq .chezmoi.os "linux" }}
|
{{- else if eq .chezmoi.os "linux" }}
|
||||||
{{ if ne .chezmoi.uid "0" }} sudo {{ end -}}rm -rf /usr/local/go || {{ if ne .chezmoi.uid "0" }} sudo {{ end -}}mkdir -p /usr/local/go && curl -L https://go.dev/dl/{{ (gitHubLatestTag "golang/go").Name }}.linux-{{ .chezmoi.arch }}.tar.gz | {{ if ne .chezmoi.uid "0" }} sudo {{ end -}}tar -xz -C /usr/local/
|
{{ if ne .chezmoi.uid "0" }} sudo {{ end -}}rm -rf /usr/local/go || {{ if ne .chezmoi.uid "0" }} sudo {{ end -}}mkdir -p /usr/local/go && curl -L https://go.dev/dl/$(curl "https://go.dev/VERSION?m=text" | head -n 1).linux-{{ .chezmoi.arch }}.tar.gz | {{ if ne .chezmoi.uid "0" }} sudo {{ end -}}tar -xz -C /usr/local/
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
|
@ -5,9 +5,9 @@
|
||||||
brew install macchina
|
brew install macchina
|
||||||
{{- else if eq .chezmoi.os "linux" }}
|
{{- else if eq .chezmoi.os "linux" }}
|
||||||
{{- 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/v{{ (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" }}
|
||||||
{{ if ne .chezmoi.uid "0" }} sudo {{ end -}}curl -LO /usr/local/bin/macchina https://github.com/Macchina-CLI/macchina/releases/download/v{{ (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 }}
|
{{- end }}
|
||||||
chmod +x /usr/local/bin/macchina
|
chmod +x /usr/local/bin/macchina
|
||||||
{{- end }}
|
{{- end }}
|
Binary file not shown.
Loading…
Reference in a new issue