mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: fixed colors when asking to install Rust
This commit is contained in:
parent
1cb8dbcfa4
commit
f30f2485c6
@ -1,16 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
BLUE="\e[34m"
|
BLUE="\e[34m"
|
||||||
|
GREEN="\e[32m"
|
||||||
RED="\e[31m"
|
RED="\e[31m"
|
||||||
ENDCOLOR="\e[0m"
|
ENDCOLOR="\e[0m"
|
||||||
|
|
||||||
# Note: This script does not install applications which are installed by the package manager. There are too many package managers out there.
|
# Note: This script does not install applications which are installed by the package manager. There are too many package managers out there.
|
||||||
|
|
||||||
# Install rust on Linux
|
# Install Rust
|
||||||
echo -e "${BLUE}AppFlowy : The Rust programming language is required to compile AppFlowy.${ENDCOLOR}"
|
echo -e "${BLUE}AppFlowy : The Rust programming language is required to compile AppFlowy.${ENDCOLOR}"
|
||||||
echo -e "${BLUE}AppFlowy : We can install it now if you don't already have it on your system.${ENDCOLOR}"
|
echo -e "${BLUE}AppFlowy : We can install it now if you don't already have it on your system.${ENDCOLOR}"
|
||||||
|
|
||||||
read -p "${BLUE}AppFlowy : Do you want to install Rust? [y/N]${ENDCOLOR} " installrust
|
read -p "$(echo -e $GREEN"AppFlowy : Do you want to install Rust? [y/N]"$ENDCOLOR) " installrust
|
||||||
|
|
||||||
if [ ${installrust^^} == "Y" ]; then
|
if [ ${installrust^^} == "Y" ]; then
|
||||||
echo -e "${BLUE}AppFlowy : Installing Rust.${ENDCOLOR}"
|
echo -e "${BLUE}AppFlowy : Installing Rust.${ENDCOLOR}"
|
||||||
|
@ -1,14 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
BLUE="\e[34m"
|
BLUE="\e[34m"
|
||||||
|
GREEN="\e[32m"
|
||||||
RED="\e[31m"
|
RED="\e[31m"
|
||||||
ENDCOLOR="\e[0m"
|
ENDCOLOR="\e[0m"
|
||||||
|
|
||||||
# Install rust on Linux
|
# Install Rust
|
||||||
echo -e "${BLUE}AppFlowy : The Rust programming language is required to compile AppFlowy.${ENDCOLOR}"
|
echo -e "${BLUE}AppFlowy : The Rust programming language is required to compile AppFlowy.${ENDCOLOR}"
|
||||||
echo -e "${BLUE}AppFlowy : We can install it now if you don't already have it on your system.${ENDCOLOR}"
|
echo -e "${BLUE}AppFlowy : We can install it now if you don't already have it on your system.${ENDCOLOR}"
|
||||||
|
|
||||||
read -p "${BLUE}AppFlowy : Do you want to install Rust? [y/N]${ENDCOLOR} " installrust
|
read -p "$(echo -e $GREEN"AppFlowy : Do you want to install Rust? [y/N]"$ENDCOLOR) " installrust
|
||||||
|
|
||||||
if [ ${installrust^^} == "Y" ]; then
|
if [ ${installrust^^} == "Y" ]; then
|
||||||
echo -e "${BLUE}AppFlowy : Installing Rust.${ENDCOLOR}"
|
echo -e "${BLUE}AppFlowy : Installing Rust.${ENDCOLOR}"
|
||||||
|
Loading…
Reference in New Issue
Block a user