Skip to content

Commit 3b73e53

Browse files
committed
Add os and arch to test.sh
1 parent 3e61154 commit 3b73e53

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,21 @@ else
3838
reset=''
3939
fi
4040

41+
k8s_version=1.10.1
42+
goarch=amd64
43+
goos="unknown"
44+
45+
if [[ "$OSTYPE" == "linux-gnu" ]]; then
46+
goos="linux"
47+
elif [[ "$OSTYPE" == "darwin"* ]]; then
48+
goos="darwin"
49+
fi
50+
51+
if [[ "$goos" == "unknown" ]]; then
52+
echo "OS '$OSTYPE' not supported. Aborting." >&2
53+
exit 1
54+
fi
55+
4156
tmp_root=/tmp
4257
kb_root_dir=$tmp_root/kubebuilder
4358

0 commit comments

Comments
 (0)