From 0a31fa1434849e4a55c7505148e5826a50813c47 Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Tue, 10 Oct 2023 22:26:15 +0200 Subject: [PATCH] fix: go install script --- .chezmoiscripts/run_install_go.sh.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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