scripts: Exit if GOPATH is not set

Changed the `rootfs.sh` script to exit with an error if `GOPATH` isn't set
in the environment.

Fixes #20.

Signed-off-by: Harshal Patil <harshal.patil@in.ibm.com>
This commit is contained in:
Harshal Patil
2018-01-15 10:39:17 +05:30
parent eb19154a60
commit 8086e5b7a6

View File

@@ -91,6 +91,8 @@ done
shift $(($OPTIND - 1))
[ -z "$GOPATH" ] && die "GOPATH not set"
distro="$1"
[ -n "${distro}" ] || usage 1