You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12345678910111213 |
- #!/bin/bash
-
- set -e
- cd /code
-
- if [ -d "$1" ]; then
- if [ ! -f "${GOPATH}/bin/$1" ] || [ "${GOPATH}/bin/$1" -nt "$1/main.go" ]; then
- export HOME="/tmp"
- go get -d -v ./... >/dev/null
- go install ./... >/dev/null
- fi
- time "${GOPATH}/bin/$1"
- fi
|