Skip to content

Commit bc5f0c2

Browse files
authored
Merge pull request #1147 from huyz/main
feat: make Rust installation prompt default to No
2 parents e8f5b1a + 69ae3cb commit bc5f0c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/scripts/install_dev_env/install_macos.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ printError() {
2222
printMessage "The Rust programming language is required to compile AppFlowy."
2323
printMessage "We can install it now if you don't already have it on your system."
2424

25-
read -p "$(printSuccess "Do you want to install Rust? [Y/N]") " installrust
25+
read -p "$(printSuccess "Do you want to install Rust? [y/N]") " installrust
2626

27-
if [ ${installrust} == "Y" ] || [ ${installrust} == "y" ]; then
27+
if [[ "${installrust:-N}" == [Yy] ]]; then
2828
printMessage "Installing Rust."
2929
brew install rustup-init
3030
rustup-init -y --default-toolchain=stable
@@ -60,7 +60,7 @@ tar -zxv --directory .githooks/. -f ${GOLINT_FILENAME} gitlint
6060
rm ${GOLINT_FILENAME}
6161

6262
# Change to the frontend directory
63-
cd frontend
63+
cd frontend || exit 1
6464

6565
# Install cargo make
6666
printMessage "Installing cargo-make."

0 commit comments

Comments
 (0)