Skip to content

Commit 86cfee6

Browse files
authored
Merge pull request #23 from geekygirldawn/gopath_check
Check that GOPATH is set and exit with a helpful error message if not
2 parents 4657860 + 4ca59df commit 86cfee6

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)