This repository was archived by the owner on Apr 12, 2025. It is now read-only.
File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- GREEN=' \033[1;32m' # Change to bold green
3
+ GREEN=' \033[1;32m'
4
4
RED=' \033[0;31m'
5
5
ORANGE=' \033[0;33m'
6
6
BOLD=' \033[1m'
7
7
RESET=' \033[0m'
8
8
9
- # Check if terminal supports ANSI escape codes
10
9
if [[ " $TERM " != " xterm-256color" ]] && ! command -v tput & > /dev/null; then
11
10
echo " Warning: ANSI escape codes not supported. Falling back to basic text formatting."
12
11
# Define basic text formatting functions
@@ -16,10 +15,9 @@ if [[ "$TERM" != "xterm-256color" ]] && ! command -v tput &> /dev/null; then
16
15
orange () { echo -e " ${ORANGE} $1 ${RESET} " ; }
17
16
reset () { echo -e " $1 " ; }
18
17
else
19
- # Define functions using tput for terminal text formatting
20
18
bold () { tput bold; echo -e " $1 " ; tput sgr0; }
21
19
red () { tput setaf 1; echo -e " $1 " ; tput sgr0; }
22
- green () { tput setaf 2; tput bold; echo -e " $1 " ; tput sgr0; } # Modify green to be bold
20
+ green () { tput setaf 2; tput bold; echo -e " $1 " ; tput sgr0; }
23
21
orange () { tput setaf 3; echo -e " $1 " ; tput sgr0; }
24
22
reset () { tput sgr0; echo -e " $1 " ; }
25
23
fi
@@ -30,7 +28,6 @@ echo "Version: 0.1.0-beta (1)"
30
28
echo " Copyright (c) 2024 - ScribbleLabApp. All rights reserved."
31
29
echo " "
32
30
33
- # Check for required tools
34
31
if ! command -v cmake & > /dev/null; then
35
32
red " Error: cmake is not installed."
36
33
exit 1
@@ -41,7 +38,6 @@ if ! command -v make &> /dev/null; then
41
38
exit 1
42
39
fi
43
40
44
- # Build process
45
41
orange " Creating build folder..."
46
42
mkdir -p build
47
43
cd build
You can’t perform that action at this time.
0 commit comments