#!/bin/sh PWD=$1 EXPECTED=$2 if [ -z "$PWD" ]; then echo "must pass in your current working directory" exit 1 fi if [ -z "$GOPATH" ]; then echo "GOPATH not set, you must have go configured properly to install ipfs" exit 1 fi if [ "$PWD" != "$EXPECTED" ]; then echo "go-ipfs must be built from within your \$GOPATH directory." echo "expected '$EXPECTED' but got '$PWD'" exit 1 fi