3
0
mirror of https://github.com/ergochat/ergo.git synced 2025-07-03 20:17:34 +02:00
ergo/install.sh
Shivaram Lingamneni 4af56f2dae add missing set -e
ensuring that install.sh exits 1 if `go install` fails,
which ensures that make sees the failure
2019-02-21 05:43:15 -05:00

19 lines
387 B
Bash
Executable File

#!/bin/bash
set -e
if [ -z "$GOPATH" ]; then
echo \$GOPATH is unset: see https://golang.org/doc/code.html for details
exit 1
fi
EXPECTED_DIR=${GOPATH}/src/github.com/oragono/oragono
if [ `pwd` != "$EXPECTED_DIR" ] ; then
echo working checkout is not where \$GOPATH expects it: should be $EXPECTED_DIR
exit 1
fi
go install -v
echo successfully installed as ${GOPATH}/bin/oragono