mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-31 08:28:34 +00:00
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:
@@ -91,6 +91,8 @@ done
|
||||
|
||||
shift $(($OPTIND - 1))
|
||||
|
||||
[ -z "$GOPATH" ] && die "GOPATH not set"
|
||||
|
||||
distro="$1"
|
||||
|
||||
[ -n "${distro}" ] || usage 1
|
||||
|
Reference in New Issue
Block a user