gecko/scripts/env.sh

14 lines
433 B
Bash
Raw Normal View History

2020-03-10 12:20:34 -07:00
#!/bin/bash
# Ted: contact me when you make any changes
# resolve the required env for salticidae-go
GOPATH="$(go env GOPATH)"
SALTICIDAE_GO_HOME="$GOPATH/src/github.com/ava-labs/salticidae-go/"
if [[ -f "$SALTICIDAE_GO_HOME/salticidae/libsalticidae.a" ]]; then
source "$SALTICIDAE_GO_HOME/scripts/env.sh"
else
2020-04-19 15:08:08 -07:00
source /dev/stdin <<<"$(curl -sS https://raw.githubusercontent.com/ava-labs/salticidae-go/v0.1.0/setup.sh)"
2020-03-10 12:20:34 -07:00
fi