fix: kubectl 安装前先删旧目录避免 mv 覆盖目录报错
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
This commit is contained in:
parent
4cf9a0a4bb
commit
f37c38d38b
@ -88,7 +88,7 @@ jobs:
|
||||
curl -LO "https://files.m.daocloud.io/dl.k8s.io/release/v1.28.0/bin/linux/amd64/kubectl" && break
|
||||
echo "Download attempt $attempt failed, retrying in 5s..." && sleep 5
|
||||
done
|
||||
chmod +x kubectl && mv kubectl /usr/local/bin/
|
||||
chmod +x kubectl && rm -rf /usr/local/bin/kubectl && mv kubectl /usr/local/bin/
|
||||
fi
|
||||
kubectl version --client
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user