diff --git a/.chezmoiscripts/run_install_go.sh.tmpl b/.chezmoiscripts/run_install_go.sh.tmpl index 856e005..0449ba3 100644 --- a/.chezmoiscripts/run_install_go.sh.tmpl +++ b/.chezmoiscripts/run_install_go.sh.tmpl @@ -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 }} \ No newline at end of file