Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
openairinterface5G
Commits
191ab1a9
Commit
191ab1a9
authored
1 year ago
by
Raphael Defosseux
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/ci-no-color-codes' into integration_2023_w42
parents
0caa6523
bab4ad2d
No related branches found
No related tags found
1 merge request
!2403
Integration Branch 2023.w42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake_targets/tools/build_helper
+12
-12
12 additions, 12 deletions
cmake_targets/tools/build_helper
with
12 additions
and
12 deletions
cmake_targets/tools/build_helper
+
12
−
12
View file @
191ab1a9
...
@@ -54,16 +54,17 @@ fi
...
@@ -54,16 +54,17 @@ fi
###############################
###############################
## echo and family
## echo and family
###############################
###############################
black='\E[30m'
# only emit color if connected to a terminal, and if it supports colors
red='\E[31m'
if [ -t 1 ]; then
green='\E[32m'
num_colors=$(tput colors)
yellow='\E[33m'
if [ -n "$num_colors" ] && [ "$num_colors" -ge 8 ]; then
blue='\E[1;34m'
red='\E[31m'
magenta='\E[35m'
green='\E[32m'
cyan='\E[36m'
yellow='\E[33m'
white='\E[37m'
blue='\E[1;34m'
reset_color='\E[00m'
reset_color='\E[00m'
COLORIZE=1
fi
fi
cecho() {
cecho() {
# Color-echo
# Color-echo
...
@@ -72,8 +73,7 @@ cecho() {
...
@@ -72,8 +73,7 @@ cecho() {
local default_msg="No Message."
local default_msg="No Message."
message=${1:-$default_msg}
message=${1:-$default_msg}
color=${2:-$green}
color=${2:-$green}
[ "$COLORIZE" = "1" ] && message="$color$message$reset_color"
echo -e "$color$message$reset_color"
echo -e "$message"
return
return
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment