mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
Merge pull request #755 from AppFlowy-IO/feat/fix_install_macos
chore: fix install script errors
This commit is contained in:
commit
d6911b7b5f
@ -22,12 +22,14 @@ printError() {
|
|||||||
printMessage "The Rust programming language is required to compile AppFlowy."
|
printMessage "The Rust programming language is required to compile AppFlowy."
|
||||||
printMessage "We can install it now if you don't already have it on your system."
|
printMessage "We can install it now if you don't already have it on your system."
|
||||||
|
|
||||||
read -p "$(printSuccess "Do you want to install Rust? [y/N]") " installrust
|
read -p "$(printSuccess "Do you want to install Rust? [Y/N]") " installrust
|
||||||
|
|
||||||
if [ ${installrust^^} == "Y" ]; then
|
if [ ${installrust} == "Y" ] || [ ${installrust} == "y" ]; then
|
||||||
printMessage "Installing Rust."
|
printMessage "Installing Rust."
|
||||||
brew install rustup-init
|
brew install rustup-init
|
||||||
rustup-init -y --default-toolchain=stable
|
rustup-init -y --default-toolchain=stable
|
||||||
|
|
||||||
|
source "$HOME/.cargo/env"
|
||||||
else
|
else
|
||||||
printMessage "Skipping Rust installation."
|
printMessage "Skipping Rust installation."
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user