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
ruanhaishen
Acme.Sh
Commits
08ee072f
Commit
08ee072f
authored
Sep 06, 2016
by
neil
Browse files
minor, fix color
parent
f3e4cea3
Changes
1
Show whitespace changes
Inline
Side-by-side
acme.sh
View file @
08ee072f
...
...
@@ -47,24 +47,27 @@ if [ -z "$AGREEMENT" ] ; then
AGREEMENT="$DEFAULT_AGREEMENT"
fi
__INTERACTIVE=""
if [ -t 1 ] ; then
__INTERACTIVE="1"
fi
__green() {
if [
-t 1
] ; then
if [
"$__INTERACTIVE"
] ; then
printf '\033[1;31;32m'
fi
printf -- "$1"
if [
-t 1
] ; then
if [
"$__INTERACTIVE"
] ; then
printf '\033[0m'
fi
}
__red() {
if [
-t 1
] ; then
if [
"$__INTERACTIVE"
] ; then
printf '\033[1;31;40m'
fi
printf -- "$1"
if [
-t 1
] ; then
if [
"$__INTERACTIVE"
] ; then
printf '\033[0m'
fi
}
...
...
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