Skip to content

Commit

Permalink
feat: install.sh will not install rust if already exist on the system
Browse files Browse the repository at this point in the history
  • Loading branch information
NOBLES5E authored Jul 3, 2021
1 parent e4ee5ee commit 67e1efe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/

0 comments on commit 67e1efe

Please sign in to comment.