mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-14 02:11:45 +00:00
remove local keyword
This commit is contained in:
parent
52351d7dc8
commit
65a7d56957
4
acme.sh
4
acme.sh
@ -139,7 +139,7 @@ __red() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_printargs() {
|
_printargs() {
|
||||||
local _exitstatus="$?"
|
_exitstatus="$?"
|
||||||
if [ -z "$NO_TIMESTAMP" ] || [ "$NO_TIMESTAMP" = "0" ]; then
|
if [ -z "$NO_TIMESTAMP" ] || [ "$NO_TIMESTAMP" = "0" ]; then
|
||||||
printf -- "%s" "[$(date)] "
|
printf -- "%s" "[$(date)] "
|
||||||
fi
|
fi
|
||||||
@ -186,6 +186,7 @@ _dlg_versions() {
|
|||||||
|
|
||||||
#class
|
#class
|
||||||
_syslog() {
|
_syslog() {
|
||||||
|
_exitstatus="$?"
|
||||||
if [ "${SYS_LOG:-$SYSLOG_LEVEL_NONE}" = "$SYSLOG_LEVEL_NONE" ]; then
|
if [ "${SYS_LOG:-$SYSLOG_LEVEL_NONE}" = "$SYSLOG_LEVEL_NONE" ]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
@ -199,6 +200,7 @@ _syslog() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
$__logger_i -t "$PROJECT_NAME" -p "$_logclass" "$(_printargs "$@")" >/dev/null 2>&1
|
$__logger_i -t "$PROJECT_NAME" -p "$_logclass" "$(_printargs "$@")" >/dev/null 2>&1
|
||||||
|
return "$_exitstatus"
|
||||||
}
|
}
|
||||||
|
|
||||||
_log() {
|
_log() {
|
||||||
|
Loading…
Reference in New Issue
Block a user