Skip to content

Commit 4ca59df

Browse files
committed
Added a quick check to make sure that GOPATH is set and if not, the script exits with an error message before continuing to remind the user to set their GOPATH before running make again.
1 parent 4657860 commit 4ca59df

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hack/install-maintainers.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#! /usr/bin/env bash
22

3+
if [ -z $GOPATH ]; then
4+
echo "GOPATH must be set to run this script"
5+
exit 1
6+
fi
7+
38
# check if git tree is clean
49
git_tree_state=dirty
510
if git_status=$(git status --porcelain --untracked=no 2>/dev/null) && [[ -z "${git_status}" ]]; then

0 commit comments

Comments
 (0)