build(mk): updated query colors
This commit is contained in:
11
mk
11
mk
@@ -122,7 +122,8 @@ if ! command -v meson &> /dev/null; then
|
||||
# Check if the user would like to try to install meson by getting input
|
||||
installMeson=0
|
||||
while true; do
|
||||
read -p "${YELLOW}[Query] Would you like to try to install Meson? [y/n]: ${NC}" yn
|
||||
echo -ne "${YELLOW}[Query] Would you like to try to install Meson? [y/n]: ${NC}"
|
||||
read -p "" yn
|
||||
case $yn in
|
||||
[Yy]* ) installMeson=1; break;;
|
||||
[Nn]* ) break;;
|
||||
@@ -187,7 +188,8 @@ if ! command -v ninja &> /dev/null; then
|
||||
# Check if the user would like to try to install ninja by getting input
|
||||
installNinja=0
|
||||
while true; do
|
||||
read -p "${YELLOW}[Query] Would you like to try to install Ninja? [y/n]: ${NC}" yn
|
||||
echo -ne "${YELLOW}[Query] Would you like to try to install Ninja? [y/n]: ${NC}"
|
||||
read -p "" yn
|
||||
case $yn in
|
||||
[Yy]* ) installNinja=1; break;;
|
||||
[Nn]* ) break;;
|
||||
@@ -247,12 +249,13 @@ fi
|
||||
# --- Check if CMake is installed ---
|
||||
log "${BLUE}[Info] Checking if CMake is installed...${NC}"
|
||||
if ! command -v cmake &> /dev/null; then
|
||||
log "${RED}[Error] CMake is not installed. Exiting...${NC}"
|
||||
log "${RED}[Error] CMake is not installed....${NC}"
|
||||
|
||||
# Check if the user would like to try to install cmake by getting input
|
||||
installCMake=0
|
||||
while true; do
|
||||
read -p "${YELLOW}[Query] Would you like to try to install CMake? [y/n]: ${NC}" yn
|
||||
echo -ne "${YELLOW}[Query] Would you like to try to install CMake? [y/n]: ${NC}"
|
||||
read -p "" yn
|
||||
case $yn in
|
||||
[Yy]* ) installCMake=1; break;;
|
||||
[Nn]* ) break;;
|
||||
|
||||
Reference in New Issue
Block a user