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
6d84da58
Commit
6d84da58
authored
Nov 29, 2016
by
neil
Committed by
GitHub
Nov 29, 2016
Browse files
Merge pull request #427 from Neilpang/dev
Add NO_TIMESTAMP to mute the timestamp from the output
parents
58bb94d7
569d6c55
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
6d84da58
...
@@ -87,10 +87,13 @@ __red() {
...
@@ -87,10 +87,13 @@ __red() {
}
}
_printargs() {
_printargs() {
if [ -z "$NO_TIMESTAMP" ] || [ "$NO_TIMESTAMP" = "0" ]; then
printf -- "%s" "[$(date)] "
fi
if [ -z "$2" ]; then
if [ -z "$2" ]; then
printf
--
"
[
$(
date
)
]
$1
"
printf -- "
%s" "
$1"
else
else
printf
--
"%s"
"
[
$(
date
)
]
$1
='
$2
'"
printf -- "%s" "$1='$2'"
fi
fi
printf "\n"
printf "\n"
}
}
...
@@ -131,7 +134,9 @@ _info() {
...
@@ -131,7 +134,9 @@ _info() {
_err() {
_err() {
_log "$@"
_log "$@"
printf
--
"[
$(
date
)
] "
>
&2
if [ -z "$NO_TIMESTAMP" ] || [ "$NO_TIMESTAMP" = "0" ]; then
printf -- "%s" "[$(date)] " >&2
fi
if [ -z "$2" ]; then
if [ -z "$2" ]; then
__red "$1" >&2
__red "$1" >&2
else
else
...
@@ -3580,7 +3585,7 @@ _initconf() {
...
@@ -3580,7 +3585,7 @@ _initconf() {
#STAGE=1 # Use the staging api
#STAGE=1 # Use the staging api
#FORCE=1 # Force to issue cert
#FORCE=1 # Force to issue cert
#DEBUG=1 # Debug mode
#DEBUG=1 # Debug mode
#NO_TIMESTAMP=1
#OPENSSL_BIN=openssl
#OPENSSL_BIN=openssl
#USER_AGENT=\"$USER_AGENT\"
#USER_AGENT=\"$USER_AGENT\"
...
...
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