You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
346 B
Cheetah
12 lines
346 B
Cheetah
2 years ago
|
{{ if lookPath "go" -}}
|
||
4 years ago
|
__APPS_GO_PATH=/usr/local/apps/golang/current/bin
|
||
|
if [ -d "${__APPS_GO_PATH}" ] && ! echo "${PATH}" | grep -q ${__APPS_GO_PATH} ; then
|
||
|
PATH="$__APPS_GO_PATH:${PATH}"
|
||
4 years ago
|
fi
|
||
4 years ago
|
unset __APPS_GO_PATH
|
||
|
|
||
|
if [ -d "${HOME}/go/bin" ] && ! echo "$PATH" | grep -q "${HOME}/go/bin" ; then
|
||
4 years ago
|
PATH="${PATH}:${HOME}/go/bin"
|
||
|
fi
|
||
2 years ago
|
{{- end }}
|