fix: Fix rustup update (#29093)

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
pull/28986/head
XuanYang-cn 2023-12-11 11:36:37 +08:00 committed by GitHub
parent 02621e131c
commit d2207cac27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,8 @@ git clone --depth=1 --branch v0.43.0-rc.2 https://github.com/apache/incubator-op
cd opendal
if command -v cargo >/dev/null 2>&1; then
echo "cargo exists"
rustup toolchain uninstall stable
rustup toolchain install stable
else
bash -c "curl https://sh.rustup.rs -sSf | sh -s -- -y" || { echo 'rustup install failed'; exit 1;}
source $HOME/.cargo/env