minor, fix error message

This commit is contained in:
neil 2016-09-28 13:13:08 +08:00
parent 150e9c8a48
commit 65de3110a9

10
acme.sh
View File

@ -104,13 +104,19 @@ _info() {
_err() { _err() {
_log "$@" _log "$@"
__red "$(_printargs "$@")" >&2 printf -- "[$(date)] " >&2
if [ -z "$2" ] ; then
__red "$1" >&2
else
__red "$1='$2'" >&2
fi
printf "\n" >&2 printf "\n" >&2
return 1 return 1
} }
_usage() { _usage() {
__red "$@" __red "$@" >&2
printf "\n" >&2
} }