fix check-install for empty GOPATH
@@ -19,7 +19,8 @@ set -o errexit
set -o nounset
set -o pipefail
-WORKINGDIR=$(pwd)
+GOPATH="$(go env GOPATH)"
+WORKINGDIR="$(pwd)"
EXPECTEDDIR="${GOPATH}/src/sigs.k8s.io/cluster-api-provider-aws"
if [ "${WORKINGDIR}" != "${EXPECTEDDIR}" ]; then
