mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-10 05:52:20 +08:00
21 lines
390 B
Bash
Executable File
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
|