mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
Merge pull request #1147 from huyz/main
feat: make Rust installation prompt default to No
This commit is contained in:
commit
bc5f0c206b
@ -22,9 +22,9 @@ 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" ] || [ ${installrust} == "y" ]; then
|
if [[ "${installrust:-N}" == [Yy] ]]; 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
|
||||||
@ -60,7 +60,7 @@ tar -zxv --directory .githooks/. -f ${GOLINT_FILENAME} gitlint
|
|||||||
rm ${GOLINT_FILENAME}
|
rm ${GOLINT_FILENAME}
|
||||||
|
|
||||||
# Change to the frontend directory
|
# Change to the frontend directory
|
||||||
cd frontend
|
cd frontend || exit 1
|
||||||
|
|
||||||
# Install cargo make
|
# Install cargo make
|
||||||
printMessage "Installing cargo-make."
|
printMessage "Installing cargo-make."
|
||||||
|
Loading…
Reference in New Issue
Block a user