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.

entrypoint.sh 274B

12345678910111213
  1. #!/bin/bash
  2. set -e
  3. cd /code
  4. if [ -d "$1" ]; then
  5. if [ ! -f "${GOPATH}/bin/$1" ] || [ "${GOPATH}/bin/$1" -nt "$1/main.go" ]; then
  6. export HOME="/tmp"
  7. go get -d -v ./... >/dev/null
  8. go install ./... >/dev/null
  9. fi
  10. time "${GOPATH}/bin/$1"
  11. fi