Fix check_golang() issue.
This commit is contained in:
parent
653fd71988
commit
70a2880ebc
3
setup.sh
3
setup.sh
@ -3,7 +3,6 @@
|
||||
set -euo pipefail
|
||||
|
||||
export CONTAINERD_VERSION=1.3.4
|
||||
export GOBIN="/usr/local/go/bin/go"
|
||||
export CLEANUP_CONTAINERD=false
|
||||
|
||||
main() {
|
||||
@ -187,7 +186,7 @@ mv containerd.service /lib/systemd/system/containerd.service
|
||||
|
||||
check_golang() {
|
||||
set +e
|
||||
stat $GOBIN >/dev/null 2>&1
|
||||
go version >/dev/null 2>&1
|
||||
rc=$?
|
||||
set -e
|
||||
if [ $rc -ne 0 ];then
|
||||
|
Loading…
x
Reference in New Issue
Block a user