{{ if lookPath "go" -}} {{ if stat "/usr/local/apps/golang/current/bin" -}} if [ -d /usr/local/apps/golang/current/bin ] && ! echo "${PATH}" | grep -q /usr/local/apps/golang/current/bin ; then PATH="/usr/local/apps/golang/current/bin:${PATH}" fi {{- end }} if [ -d "${HOME}/go/bin" ] && ! echo "$PATH" | grep -q "${HOME}/go/bin" ; then PATH="${PATH}:${HOME}/go/bin" fi {{- end }}