From: AJ ONeal Date: Sat, 13 Jun 2020 20:11:59 +0000 (-0600) Subject: add potentially absent go/bin X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=fcd3ad43257d4fee894d4cddbdc36a79cde21ec8;p=webi-installers%2F.git add potentially absent go/bin --- diff --git a/golang/install.bash b/golang/install.bash index e14d8b0..d313044 100644 --- 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() { - 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" + mkdir -p "$new_go_bin/bin" ln -s "$new_go_bin" "$common_go_bin" webi_path_add "$common_go_bin/bin" }