Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iml-backup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
IML Open Source
iml-backup
Commits
1f3f8350
Commit
1f3f8350
authored
3 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
add function cecho
parent
6fde8187
Branches
Branches containing commit
No related tags found
1 merge request
!43
Update localdump to classlike functions
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
inc_bash.sh
+14
-1
14 additions, 1 deletion
inc_bash.sh
with
14 additions
and
1 deletion
inc_bash.sh
+
14
−
1
View file @
1f3f8350
# ======================================================================
#
# shared bash functions
#
# ======================================================================
# ----------------------------------------------------------------------
# returncodes
...
...
@@ -49,6 +53,15 @@ function fetchrc(){
fi
}
# echo a colored text and reset color
# param string keyword to set a color - see function color() above
# param string text to show
function
cecho
(){
color
$1
shift
echo
$*
color reset
}
function
showPrompt
(){
color input
...
...
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