kubo/bin/check_go_path
Lars Gierth ad461c611e Revert "Makefile, bin: Support multiple GOPATH components"
This reverts commit ff75bc0318,
which broke building on windows. See ipfs/go-ipfs#2833.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-06-17 15:32:40 +02:00

21 lines
390 B
Bash
Executable File

#!/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