cdist/cdist/conf/type/__go_get/gencode-remote

11 lines
191 B
Plaintext
Raw Normal View History

2017-06-28 11:19:32 +00:00
#!/bin/sh -e
2017-06-28 10:54:10 +00:00
2017-05-04 15:29:07 +00:00
package=$__object_id
cat<<EOF
[ -f /etc/environment ] && . /etc/environment
[ -f /etc/profile ] && . /etc/profile
export GOPATH=\${GOPATH:-/opt/gocode}
go get $package
EOF