Skip to content

Commit 70a2880

Browse files
Fix check_golang() issue.
1 parent 653fd71 commit 70a2880

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

setup.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
set -euo pipefail
44

55
export CONTAINERD_VERSION=1.3.4
6-
export GOBIN="/usr/local/go/bin/go"
76
export CLEANUP_CONTAINERD=false
87

98
main() {
@@ -187,7 +186,7 @@ mv containerd.service /lib/systemd/system/containerd.service
187186

188187
check_golang() {
189188
set +e
190-
stat $GOBIN >/dev/null 2>&1
189+
go version >/dev/null 2>&1
191190
rc=$?
192191
set -e
193192
if [ $rc -ne 0 ];then

0 commit comments

Comments
 (0)