From ea4e1c181925625e7bf63afcc7b26c3a051153de Mon Sep 17 00:00:00 2001 From: satoshiotomakan <127754187+satoshiotomakan@users.noreply.github.com> Date: Fri, 17 Nov 2023 16:33:43 +0100 Subject: [PATCH] [Rust]: Install rustup in a correct way (#3562) --- tools/install-sys-dependencies-mac | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/install-sys-dependencies-mac b/tools/install-sys-dependencies-mac index 2e7fc69a00e..9ff7f1a41fd 100755 --- a/tools/install-sys-dependencies-mac +++ b/tools/install-sys-dependencies-mac @@ -3,3 +3,12 @@ set -e brew install boost ninja xcodegen xcbeautify + +if command -v rustup &> /dev/null +then + echo "Rustup is already installed." +else + echo "Rustup is not installed. Installing it now." + brew install rustup + rustup-init -y --default-toolchain none --no-update-default-toolchain +fi