summaryrefslogtreecommitdiff
path: root/src/clean.bash
diff options
context:
space:
mode:
Diffstat (limited to 'src/clean.bash')
-rwxr-xr-xsrc/clean.bash8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/clean.bash b/src/clean.bash
index 567e6e319..db4cf4010 100755
--- a/src/clean.bash
+++ b/src/clean.bash
@@ -9,6 +9,14 @@ if [ -z "$GOROOT" ] ; then
echo '$GOROOT not set'
exit 1
fi
+if [ -z "$GOOS" ] ; then
+ echo '$GOOS not set'
+ exit 1
+fi
+if [ -z "$GOARCH" ] ; then
+ echo '$GOARCH not set'
+ exit 1
+fi
GOBIN="${GOBIN:-$HOME/bin}"