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
137dc1ea
Commit
137dc1ea
authored
Nov 23, 2018
by
neilpang
Browse files
fix
https://github.com/Neilpang/acme.sh/issues/1912
parent
0a9a1163
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
137dc1ea
...
...
@@ -124,23 +124,19 @@ if [ -t 1 ]; then
fi
__green
()
{
if
[
"
$__INTERACTIVE
${
ACME_NO_COLOR
}
"
=
"1"
-o
"
${
ACME_FORCE_COLOR
}
"
=
"1"
]
;
then
printf
'\033[1;31;32m'
if
[
"
${
__INTERACTIVE
}${
ACME_NO_COLOR
:-
0
}
"
=
"10"
-o
"
${
ACME_FORCE_COLOR
}
"
=
"1"
]
;
then
printf
'\033[1;31;32m%b\033[0m'
"
$1
"
return
fi
printf
--
"%b"
"
$1
"
if
[
"
$__INTERACTIVE
${
ACME_NO_COLOR
}
"
=
"1"
-o
"
${
ACME_FORCE_COLOR
}
"
=
"1"
]
;
then
printf
'\033[0m'
fi
}
__red
()
{
if
[
"
$__INTERACTIVE
${
ACME_NO_COLOR
}
"
=
"1"
-o
"
${
ACME_FORCE_COLOR
}
"
=
"1"
]
;
then
printf
'\033[1;31;40m'
if
[
"
${
__INTERACTIVE
}${
ACME_NO_COLOR
:-
0
}
"
=
"10"
-o
"
${
ACME_FORCE_COLOR
}
"
=
"1"
]
;
then
printf
'\033[1;31;40m%b\033[0m'
"
$1
"
return
fi
printf
--
"%b"
"
$1
"
if
[
"
$__INTERACTIVE
${
ACME_NO_COLOR
}
"
=
"1"
-o
"
${
ACME_FORCE_COLOR
}
"
=
"1"
]
;
then
printf
'\033[0m'
fi
}
_printargs
()
{
...
...
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