fix: go install script

This commit is contained in:
Peter 2023-10-10 22:26:15 +02:00
parent c2845022e9
commit 0a31fa1434
No known key found for this signature in database

View file

@ -3,6 +3,6 @@
{{- if eq .chezmoi.os "darwin" }}
brew install go
{{- 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/{{ (gitHubLatestTag "golang/go").Tag }}.linux-{{ .chezmoi.arch }}.tar.gz | {{ if ne .chezmoi.uid "0" }} sudo {{ end -}}tar -xz -C /usr/local/
{{- end }}
{{- end }}