Code Review
/
csit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
4896fcc
)
fix(bootstrap): Go install with sudo
43/41443/1
author
pmikus
<
[email protected]
>
Fri, 23 Aug 2024 08:11:44 +0000
(10:11 +0200)
committer
Peter Mikus
<
[email protected]
>
Fri, 23 Aug 2024 08:12:58 +0000
(08:12 +0000)
Signed-off-by: pmikus <
[email protected]
>
Change-Id: I0869ee6629916025b1df603072dfa7ccae62110a
(cherry picked from commit
6e48104f915be4cd7d6246afe7b32bf7a9f74787
)
resources/libraries/bash/function/hugo.sh
patch
|
blob
|
history
diff --git
a/resources/libraries/bash/function/hugo.sh
b/resources/libraries/bash/function/hugo.sh
index
6c201d9
..
4d0e3ec
100644
(file)
--- 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
}