projects
/
webi-installers
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
87afbd6
)
add potentially absent go/bin
author
AJ ONeal
<coolaj86@gmail.com>
Sat, 13 Jun 2020 20:11:59 +0000
(14:11 -0600)
committer
AJ ONeal
<coolaj86@gmail.com>
Sat, 13 Jun 2020 20:11:59 +0000
(14:11 -0600)
golang/install.bash
patch
|
blob
|
history
diff --git
a/golang/install.bash
b/golang/install.bash
index e14d8b0776ef4a31d0dffdc0287a939edae12f8c..d31304466886c8159807e9bf1f1d6a10a1d2f97a 100644
(file)
--- a/
golang/install.bash
+++ b/
golang/install.bash
@@
-46,12
+46,13
@@
common_go_bin="${HOME}/go"
new_go_bin="${HOME}/.local/opt/go-bin-v${WEBI_VERSION}"
update_go_home() {
new_go_bin="${HOME}/.local/opt/go-bin-v${WEBI_VERSION}"
update_go_home() {
- rm -rf "$common_go_home"
+ rm -rf "$common_go_home"
# should be a symlink
ln -s "$new_go_home" "$common_go_home"
# TODO get better output from pathman / output the path to add as return to webi bootstrap
webi_path_add "$common_go_home/bin"
rm -rf "$common_go_bin"
ln -s "$new_go_home" "$common_go_home"
# TODO get better output from pathman / output the path to add as return to webi bootstrap
webi_path_add "$common_go_home/bin"
rm -rf "$common_go_bin"
+ mkdir -p "$new_go_bin/bin"
ln -s "$new_go_bin" "$common_go_bin"
webi_path_add "$common_go_bin/bin"
}
ln -s "$new_go_bin" "$common_go_bin"
webi_path_add "$common_go_bin/bin"
}