Skip to content

Commit

Permalink
Execute with sudo (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
granddaifuku authored Sep 11, 2024
1 parent dcde5cd commit d8251b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .chezmoiscripts/run_once_after_02-install-go.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -uxo pipefail

{{ if eq .chezmoi.os "linux" -}}
wget -P /tmp "https://dl.google.com/go/go1.23.1.linux-amd64.tar.gz"
rm -rf /usr/local/go && tar -C /usr/local -xzf "/tmp/go1.23.1.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf "/tmp/go1.23.1.linux-amd64.tar.gz"
rm "/tmp/go1.23.1.linux-amd64.tar.gz"
export PATH="$PATH:/usr/local/go/bin"
go install golang.org/x/tools/gopls@latest
Expand Down

0 comments on commit d8251b8

Please sign in to comment.