aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries
diff options
context:
space:
mode:
authorpmikus <peter.mikus@protonmail.ch>2024-08-23 10:11:44 +0200
committerpmikus <peter.mikus@protonmail.ch>2024-08-23 10:11:44 +0200
commit6e48104f915be4cd7d6246afe7b32bf7a9f74787 (patch)
tree493d283185cd8b0ffa8926b1566d23a83b76cb52 /resources/libraries
parent7dc3b9db651e4a0d9af348d509f7c8b5e398a4de (diff)
fix(bootstrap): Go install with sudo
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I0869ee6629916025b1df603072dfa7ccae62110a
Diffstat (limited to 'resources/libraries')
-rw-r--r--resources/libraries/bash/function/hugo.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/libraries/bash/function/hugo.sh b/resources/libraries/bash/function/hugo.sh
index 6c201d9efd..4d0e3eccc7 100644
--- a/resources/libraries/bash/function/hugo.sh
+++ b/resources/libraries/bash/function/hugo.sh
@@ -29,8 +29,8 @@ function go_install () {
go_version="go1.22.5.linux-${architecture}.tar.gz"
go_url="https://go.dev/dl"
wget "${go_url}/${go_version}"
- rm -rf "/usr/local/go"
- tar -C "/usr/local" -xzf "go1.22.5.linux-${architecture}.tar.gz"
+ sudo rm -rf "/usr/local/go"
+ sudo tar -C "/usr/local" -xzf "go1.22.5.linux-${architecture}.tar.gz"
rm "go1.22.5.linux-${architecture}.tar.gz"
export PATH=$PATH:/usr/local/go/bin
}