diff --git a/install.sh b/install.sh index d17a421b3..fbb795d98 100644 --- a/install.sh +++ b/install.sh @@ -67,8 +67,11 @@ elif [ "$OS_NAME" == "CentOS Linux" ]; then fi # install rust -curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y -export PATH="$HOME/.cargo/bin:$PATH" +if ! command -v cargo &> /dev/null +then + curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y + export PATH="$HOME/.cargo/bin:$PATH" +fi # install bagua python3 -m pip install bagua -f https://repo.arrayfire.com/python/wheels/3.8.0/