aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpmikus <peter.mikus@protonmail.ch>2024-08-23 10:11:44 +0200
committerPeter Mikus <peter.mikus@protonmail.ch>2024-08-23 08:12:58 +0000
commitc2cecd4d98a01572d2f1a375301a5ea80f01a3c2 (patch)
treef7200827984b7369f80a9ee26fe5af4bca33833d
parent4896fcc823739089a637c5b21ba2a63586556f54 (diff)
fix(bootstrap): Go install with sudo
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I0869ee6629916025b1df603072dfa7ccae62110a (cherry picked from commit 6e48104f915be4cd7d6246afe7b32bf7a9f74787)
-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
}