Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dcu_env_check
Commits
d6cfa558
Commit
d6cfa558
authored
Jun 24, 2025
by
liumg
Browse files
Upload New File
parent
1b8bcca1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
tools/utils.sh
tools/utils.sh
+25
-0
No files found.
tools/utils.sh
0 → 100644
View file @
d6cfa558
#!/usr/bin/bash
function
echoAndRun
(){
hline
echo
echo
"[root@dcu ~]# "
$1
;
eval
$1
;
echo
;
}
# 日志函数
function
log
()
{
[
$QUIET_MODE
-eq
0
]
&&
echo
"
$@
"
}
function
hline
()
{
printf
"%0.s="
{
1..60
}
echo
}
## 标准化提示信息格式
function
head_normal
()
{
echo
-e
"
\n
############
$1
############"
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment