21 lines
481 B
Bash
Executable File
21 lines
481 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
cd "$(dirname "$0")"
|
|
mode=${1:---docker}
|
|
case "$mode" in
|
|
--docker|docker)
|
|
if [ "$#" -gt 0 ]; then shift; fi
|
|
exec python3 scripts/setup-docker.py "$@"
|
|
;;
|
|
--native|native)
|
|
if [ "$#" -gt 0 ]; then shift; fi
|
|
;;
|
|
*) exec python3 scripts/setup-docker.py "$@" ;;
|
|
esac
|
|
if [ "$#" -ne 0 ]; then
|
|
echo 'Usage: ./install.sh --native (honors GOBIN and GOPATH)' >&2
|
|
exit 2
|
|
fi
|
|
go install -trimpath ./cmd/...
|
|
exec go run ./cmd/pipelines skill install
|